1
0
Fork 0
mirror of https://github.com/fiso64/slsk-batchdl.git synced 2024-12-22 06:22:41 +00:00
slsk-batchdl/publish.sh

19 lines
832 B
Bash
Raw Normal View History

2023-10-28 17:35:21 +00:00
#!/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
2024-10-20 14:36:32 +00:00
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
2024-05-26 18:56:32 +00:00
# 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
2024-10-20 14:36:32 +00:00
# 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