-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates beta installer. Adds local build scripts (#671)
* Updates build action to set beta installer version from the tag * Adds comments to win installer files * Adds local build and setup scripts
- Loading branch information
1 parent
30b1c11
commit 14f1934
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$versionString = "v0.17.0-beta.4" | ||
$version = $versionString.Substring(1) | ||
|
||
Remove-Item ../bld -Recurse -Force | ||
|
||
dotnet publish ../dev-proxy/dev-proxy.csproj -c Release -p:PublishSingleFile=true -r win-x64 --self-contained -o ../bld -p:InformationalVersion=$version | ||
dotnet build ../dev-proxy-plugins/dev-proxy-plugins.csproj -c Release -r win-x64 --no-self-contained -p:InformationalVersion=$version | ||
cp -R ../dev-proxy/bin/Release/net8.0/win-x64/plugins ../bld | ||
pushd | ||
|
||
cd ../bld | ||
Get-ChildItem -Filter *.pdb -Recurse | Remove-Item | ||
Get-ChildItem -Filter *.deps.json -Recurse | Remove-Item | ||
Get-ChildItem -Filter *.runtimeconfig.json -Recurse | Remove-Item | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$versionString = "v0.17.0-beta.4" | ||
$version = $versionString.Substring(1) | ||
$isBeta = $version.Contains("-beta") | ||
|
||
# Remove old installer if any | ||
Get-Item ../bld/*installer* -ErrorAction SilentlyContinue | Remove-Item | ||
|
||
if (-not (Test-Path ../bld)) { | ||
Write-Error "Build directory not found. Run local-build.ps1 first." | ||
exit 1 | ||
} | ||
|
||
if ($isBeta) { | ||
# Rename executable for beta | ||
Rename-Item -Path ../bld/devproxy.exe -NewName devproxy-beta.exe | ||
} | ||
|
||
# Add installer icon | ||
Copy-Item ../media/icon.ico ../bld/icon.ico | ||
|
||
# Set installer filename | ||
$installer = $isBeta ? "install-beta.iss" : "install.iss" | ||
|
||
# Copy installer file | ||
Copy-Item "../$installer" "../bld/$installer" | ||
|
||
# Set version in installer script | ||
if ($isBeta) { | ||
(Get-Content "../bld/$installer") -replace "#define MyAppVersion .*", "#define MyAppVersion `"$version`"" | Set-Content "../bld/$installer" | ||
} | ||
|
||
|
||
ISCC.exe "../bld/$installer" /F"dev-proxy-installer-win-x64-$versionString" |