Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 28 additions & 198 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,215 +1,45 @@
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
x86/
[Bb]in/
[Oo]bj/
Binaries/
Standalone/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# Visual Studio
.vs/
*.user
*.suo
*.userosscache
*.sln.docstates

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
# Build artifacts
*.exe
*.dll
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
!TestFiles/*.dwg
!TestFiles/*.scr
!TestFiles/*.bpl

# Installer
ScriptProSetup/bin/
ScriptProSetup/obj/
*.msi
*.wixobj
*.wixpdb

# Logs
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

#############
## Windows detritus
#############
# Large files
*.mp4
*.avi
*.mov

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg
99 changes: 99 additions & 0 deletions Build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# ScriptProPlus Build Script
# Usage:
# .\Build.ps1 # Build Debug x64 (default)
# .\Build.ps1 -Release # Build Release x64
# .\Build.ps1 -Setup # Build + Create MSI Installer
# .\Build.ps1 -Standalone # Create portable standalone package

param(
[switch]$Release,
[switch]$Setup,
[switch]$Standalone
)

$ErrorActionPreference = "Stop"
$SolutionPath = "ScriptProPlus.sln"

# Determine configuration
$Config = if ($Release -or $Setup -or $Standalone) { "Release" } else { "Debug" }
$Platform = "x64"

Write-Host "========================================" -ForegroundColor Cyan
Write-Host " ScriptProPlus Build Script" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host "Configuration: $Config"
Write-Host "Platform: $Platform"
Write-Host ""

# Build the solution
Write-Host "Building solution..." -ForegroundColor Yellow
msbuild $SolutionPath /p:Configuration=$Config /p:Platform=$Platform /t:Rebuild /m /v:minimal

if ($LASTEXITCODE -ne 0) {
Write-Host "Build failed!" -ForegroundColor Red
exit 1
}

Write-Host "Build successful!" -ForegroundColor Green
Write-Host ""

$OutputPath = "Binaries\$Platform\$Config\net8.0-windows"
Write-Host "Output: $OutputPath" -ForegroundColor Green

# Create MSI Installer
if ($Setup) {
Write-Host ""
Write-Host "Building installer..." -ForegroundColor Yellow

# Build WiX installer
msbuild ScriptProSetup\ScriptProSetup.wixproj /p:Configuration=$Config /v:minimal

if ($LASTEXITCODE -ne 0) {
Write-Host "Installer build failed!" -ForegroundColor Red
exit 1
}

$MsiPath = "ScriptProSetup\bin\$Config\ScriptProSetup.msi"
if (Test-Path $MsiPath) {
Write-Host "Installer created: $MsiPath" -ForegroundColor Green

# Copy to Release folder
if (!(Test-Path "Release")) { New-Item -ItemType Directory -Path "Release" | Out-Null }
Copy-Item $MsiPath "Release\ScriptProSetup.msi" -Force
Write-Host "Copied to: Release\ScriptProSetup.msi" -ForegroundColor Green
}
}

# Create Standalone Package
if ($Standalone) {
Write-Host ""
Write-Host "Creating standalone package..." -ForegroundColor Yellow

$StandaloneDir = "Standalone\ScriptPro-Portable"
if (Test-Path $StandaloneDir) {
Remove-Item $StandaloneDir -Recurse -Force
}

New-Item -ItemType Directory -Path $StandaloneDir | Out-Null

# Copy binaries
Copy-Item "$OutputPath\*" $StandaloneDir -Recurse -Force

# Copy help file
Copy-Item "Modern.Help.html" $StandaloneDir -Force

Write-Host "Standalone package created: $StandaloneDir" -ForegroundColor Green

# Create ZIP
$ZipPath = "Standalone\ScriptPro-Portable.zip"
if (Test-Path $ZipPath) { Remove-Item $ZipPath -Force }
Compress-Archive -Path $StandaloneDir -DestinationPath $ZipPath

Write-Host "ZIP created: $ZipPath" -ForegroundColor Green
}

Write-Host ""
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " Build Complete!" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Cyan

Loading