-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish-app.sh
executable file
·45 lines (40 loc) · 1.22 KB
/
publish-app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
rm -rf Zen.app
rm *.App.zip
dotnet publish ./src/Zen.Desktop.Host/Zen.Desktop.Host.csproj -c Release -r osx-arm64 -p:PublishReadyToRun=false -p:TieredCompilation=false -p:PublishTrimmed=false --self-contained
cd ./src/Zen.Desktop.Host/bin/Release/net8.0/osx-arm64/publish
pwd
chmod +xxx Zen.Desktop.Host
cd -
mkdir Zen.app
cd Zen.app
mkdir Contents
cd Contents
mkdir MacOS
cp -R ../../src/Zen.Desktop.Host/bin/Release/net8.0/osx-arm64/publish/* MacOS
mkdir Resources
cp -R MacOS/_Content Resources
cp ../../Images/icon.icns Resources
cp ../../src/Zen.Desktop.Host/Info.plist .
cd ..
cd ..
zip -r Zen.App.AppleSilicon.zip Zen.app
rm -rf Zen.app
dotnet publish ./src/Zen.Desktop.Host/Zen.Desktop.Host.csproj -c Release -r osx-x64 -p:PublishReadyToRun=false -p:TieredCompilation=false -p:PublishTrimmed=false --self-contained
cd ./src/Zen.Desktop.Host/bin/Release/net8.0/osx-x64/publish
pwd
chmod +xxx Zen.Desktop.Host
cd -
mkdir Zen.app
cd Zen.app
mkdir Contents
cd Contents
mkdir MacOS
cp -R ../../src/Zen.Desktop.Host/bin/Release/net8.0/osx-x64/publish/* MacOS
mkdir Resources
cp MacOS/_Content Resources
cp ../../Images/icon.icns Resources
cp ../../src/Zen.Desktop.Host/Info.plist .
cd ..
cd ..
zip -r Zen.App.Intel.zip Zen.app
rm -rf Zen.app