Skip to content

Commit

Permalink
Created build script in Powershell for easier building
Browse files Browse the repository at this point in the history
  • Loading branch information
PablosCorner committed Jan 4, 2024
1 parent 1e73ae5 commit 1ba6550
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions WiiLink-Patcher-CLI/build.ps1
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\

0 comments on commit 1ba6550

Please sign in to comment.