-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created build script in Powershell for easier building
- Loading branch information
1 parent
1e73ae5
commit 1ba6550
Showing
1 changed file
with
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Quick script I whipped up to build the project for all supported platforms | ||
|
||
# Define the version as a parameter | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string]$version | ||
) | ||
|
||
# Build the project for all supported platforms | ||
dotnet publish -c Release -r win-x64 --self-contained /p:AssemblyName="WiiLink_Patcher_Windows_v$version" | ||
dotnet publish -c Release -r osx-x64 --self-contained /p:AssemblyName="WiiLink_Patcher_macOS_v$version" | ||
dotnet publish -c Release -r osx-arm64 --self-contained /p:AssemblyName="WiiLink_Patcher_macOS-arm64_v$version" | ||
dotnet publish -c Release -r linux-x64 --self-contained /p:AssemblyName="WiiLink_Patcher_Linux-x64_v$version" | ||
dotnet publish -c Release -r linux-arm64 --self-contained /p:AssemblyName="WiiLink_Patcher_Linux-arm64_v$version" | ||
|
||
# Open the folder where the builds are located | ||
explorer.exe .\bin\Release\net6.0-windows10.0.22621.0\ |