-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.ps1
22 lines (17 loc) · 937 Bytes
/
publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dotnet build .\Triggered\Triggered.csproj -c Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
dotnet publish .\Triggered.Launcher\Triggered.Launcher.csproj /p:PublishProfile=FolderProfile
cp ModuleMaker\Modules Releases\win-x64\Triggered\Modules -Recurse
cp ModuleMaker\Utilities Releases\win-x64\Triggered\Utilities -Recurse
cp ModuleMaker\Widgets Releases\win-x64\Triggered\Widgets -Recurse
$version = (Get-Item Releases\win-x64\Triggered\Triggered.exe).VersionInfo.FileVersion
if (Test-Path "Releases\win-x64\${version}.zip") {
del "Releases\win-x64\${version}.zip"
}
Compress-Archive -Path Releases\win-x64\Triggered* -CompressionLevel Optimal -DestinationPath "Releases\win-x64\${version}.zip"
Set-Content latestversion ${version}
del Releases\win-x64\Triggered\* -Recurse
del Releases\win-x64\Triggered\
git tag -a v${version} -m "Release v${version}"
git add .
git commit -a -m "Release v${version}"
git push