mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-19 19:15:28 +00:00
* Code cleanup and update to .NET 8 * Fix macOS requiring staging directory to be selected. Also places eboots on Desktop on macos, to avoid them being inside the app bundle. * Fix keys discovery on mac * Removed debug logging, made GetExecutablePath more robust. * Created a script for building on mac, as creating a universal binary is somewhat involved * Update UnionPatcher.Gui/Forms/ModeSelectionForm.cs Co-authored-by: sudokoko <koko@sudokoko.xyz> * Apply suggestions from code review Co-authored-by: Josh <josh@slendy.pw> --------- Co-authored-by: sudokoko <koko@sudokoko.xyz> Co-authored-by: Josh <josh@slendy.pw>
31 lines
1.1 KiB
Bash
Executable file
31 lines
1.1 KiB
Bash
Executable file
mkdir -p builds
|
|
#dotnet clean;
|
|
|
|
dotnet publish -c Windows -r win-x64 --self-contained
|
|
|
|
dotnet publish -c Linux -r linux-x64 --self-contained
|
|
dotnet publish -c Linux -r linux-arm --self-contained
|
|
dotnet publish -c Linux -r linux-arm64 --self-contained
|
|
|
|
dotnet publish -c MacOS -r osx-x64 --self-contained
|
|
dotnet publish -c MacOS -r osx-arm64 --self-contained
|
|
|
|
# $1: Name.zip
|
|
# $2: Path to zip
|
|
function createBuild() {
|
|
currentDirectory=$(pwd)
|
|
cd $2 || return 1
|
|
|
|
zip -r "$1" *
|
|
cd $currentDirectory || return 1
|
|
mv "$2/$1" builds/
|
|
}
|
|
|
|
createBuild "UnionPatcher-Windows-x64.zip" "UnionPatcher.Gui.Windows/bin/Release/net8.0-windows/win-x64/publish/"
|
|
|
|
createBuild "UnionPatcher-Linux-x64.zip" "UnionPatcher.Gui.Linux/bin/Release/net8.0/linux-x64/publish/"
|
|
createBuild "UnionPatcher-Linux-arm.zip" "UnionPatcher.Gui.Linux/bin/Release/net8.0/linux-arm/publish/"
|
|
createBuild "UnionPatcher-Linux-arm64.zip" "UnionPatcher.Gui.Linux/bin/Release/net8.0/linux-arm64/publish/"
|
|
|
|
# CODESIGN_IDENTITY is the certificate that you want to use for codesigning for mac, if not present then will not be signed
|
|
./build-mac.sh $CODESIGN_IDENTITY
|