-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpublish.sh
18 lines (14 loc) · 832 Bytes
/
publish.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
### Download dotnet from https://dotnet.microsoft.com/en-us/download/dotnet/6.0
# Create directory if it doesn't exist
mkdir -p slsk-batchdl/bin/zips
# For macOS ARM64
dotnet publish -c Release -r osx-arm64 -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true
rm -f slsk-batchdl/bin/Release/net6.0/osx-arm64/publish/*.pdb
rm -f slsk-batchdl/bin/zips/sldl_osx-arm64.zip
zip -r slsk-batchdl/bin/zips/sldl_osx-arm64.zip slsk-batchdl/bin/Release/net6.0/osx-arm64/publish
# For macOS x64
# dotnet publish -c Release -r osx-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true
# rm -f slsk-batchdl/bin/Release/net6.0/osx-x64/publish/*.pdb
# rm -f slsk-batchdl/bin/zips/sldl_osx-x64.zip
# zip -r slsk-batchdl/bin/zips/sldl_osx-x64.zip slsk-batchdl/bin/Release/net6.0/osx-x64/publish