Skip to content

Commit

Permalink
Add shell script to build all UP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Jul 28, 2022
1 parent 159dd9f commit fea80d4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,5 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml

builds/
1 change: 1 addition & 0 deletions .idea/.idea.UnionPatcher/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions UnionPatcher.Gui.Windows/UnionPatcher.Gui.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@

<ItemGroup>
<KnownFrameworkReference Update="Microsoft.WindowsDesktop.App.WindowsForms" IsWindowsOnly="false" />
<KnownFrameworkReference Update="Microsoft.WindowsDesktop.App" IsWindowsOnly="false"/>
</ItemGroup>
</Project>
31 changes: 31 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 zipPath() {
currentDirectory=$(pwd)
cd $2 || return 1;

zip "$1" *;
cd $currentDirectory || return 1;
mv "$2/$1" builds/
}

zipPath "UnionPatcher-Windows-x64.zip" "UnionPatcher.Gui.Windows/bin/Release/net6.0-windows/win-x64/publish/"

zipPath "UnionPatcher-Linux-x64.zip" "UnionPatcher.Gui.Linux/bin/Release/net6.0/linux-x64/publish/"
zipPath "UnionPatcher-Linux-arm.zip" "UnionPatcher.Gui.Linux/bin/Release/net6.0/linux-arm/publish/"
zipPath "UnionPatcher-Linux-arm64.zip" "UnionPatcher.Gui.Linux/bin/Release/net6.0/linux-arm64/publish/"

zipPath "UnionPatcher-macOS-x64.zip" "UnionPatcher.Gui.MacOS/bin/Release/net6.0/osx-x64/publish/"
zipPath "UnionPatcher-macOS-arm64.zip" "UnionPatcher.Gui.MacOS/bin/Release/net6.0/osx-arm64/publish/"

0 comments on commit fea80d4

Please sign in to comment.