-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
28 lines (22 loc) · 1.62 KB
/
Copy pathbuild.ps1
File metadata and controls
28 lines (22 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$version = "1.0.0"
if ($(where.exe nbgv)) {
Write-Host "building:"
nbgv get-version
nbgv cloud -p . -s GitHubActions
$version = $(nbgv get-version -v NuGetPackageVersion)
}
else {
Write-Host "nbgv not found. reverting to $version."
}
msbuild SimpleTrayIcon /p:Platform=x64 /p:Configuration=Release /p:ConfigurationType=DynamicLibrary /m
msbuild SimpleTrayIcon /p:Platform=Win32 /p:Configuration=Release /p:ConfigurationType=DynamicLibrary /m
msbuild SimpleTrayIcon /p:Platform=ARM64 /p:Configuration=Release /p:ConfigurationType=DynamicLibrary /m
msbuild SimpleTrayIcon /p:Platform=x64 /p:Configuration=Release /p:ConfigurationType=StaticLibrary /m
msbuild SimpleTrayIcon /p:Platform=Win32 /p:Configuration=Release /p:ConfigurationType=StaticLibrary /m
msbuild SimpleTrayIcon /p:Platform=ARM64 /p:Configuration=Release /p:ConfigurationType=StaticLibrary /m
dotnet build SimpleTrayIconProjections -c:Release /p:Platform=AnyCPU
nuget pack nuget\SimpleTrayIcon.nuspec -nopackageanalysis -basepath . -outputdirectory .\bin -version $version -properties commit=$(git rev-parse HEAD)
msbuild SimpleTrayIcon /p:Platform=x64 /p:Configuration=Release /p:TrayIconOneCore=true /p:ConfigurationType=DynamicLibrary /m
msbuild SimpleTrayIcon /p:Platform=Win32 /p:Configuration=Release /p:TrayIconOneCore=true /p:ConfigurationType=DynamicLibrary /m
msbuild SimpleTrayIcon /p:Platform=ARM64 /p:Configuration=Release /p:TrayIconOneCore=true /p:ConfigurationType=DynamicLibrary /m
nuget pack nuget\SimpleTrayIcon.onecore.nuspec -nopackageanalysis -basepath . -outputdirectory .\bin -version $version -properties commit=$(git rev-parse HEAD)