mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-03 06:38:47 +00:00
Add shell script to build all UP versions
This commit is contained in:
parent
159dd9f3cc
commit
fea80d4485
4 changed files with 35 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -396,3 +396,5 @@ FodyWeavers.xsd
|
||||||
|
|
||||||
# JetBrains Rider
|
# JetBrains Rider
|
||||||
*.sln.iml
|
*.sln.iml
|
||||||
|
|
||||||
|
builds/
|
||||||
|
|
1
.idea/.idea.UnionPatcher/.idea/indexLayout.xml
generated
1
.idea/.idea.UnionPatcher/.idea/indexLayout.xml
generated
|
@ -9,6 +9,7 @@
|
||||||
<Path>README.md</Path>
|
<Path>README.md</Path>
|
||||||
<Path>UnionPatcher.sln.DotSettings</Path>
|
<Path>UnionPatcher.sln.DotSettings</Path>
|
||||||
<Path>UnionPatcher.sln.DotSettings.user</Path>
|
<Path>UnionPatcher.sln.DotSettings.user</Path>
|
||||||
|
<Path>build-all.sh</Path>
|
||||||
<Path>global.json</Path>
|
<Path>global.json</Path>
|
||||||
</explicitIncludes>
|
</explicitIncludes>
|
||||||
<explicitExcludes />
|
<explicitExcludes />
|
||||||
|
|
|
@ -20,5 +20,6 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<KnownFrameworkReference Update="Microsoft.WindowsDesktop.App.WindowsForms" IsWindowsOnly="false" />
|
<KnownFrameworkReference Update="Microsoft.WindowsDesktop.App.WindowsForms" IsWindowsOnly="false" />
|
||||||
|
<KnownFrameworkReference Update="Microsoft.WindowsDesktop.App" IsWindowsOnly="false"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
31
build-all.sh
Executable file
31
build-all.sh
Executable file
|
@ -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/"
|
Loading…
Add table
Add a link
Reference in a new issue