mirror of
https://github.com/fiso64/slsk-batchdl.git
synced 2024-12-22 22:42:41 +00:00
12 lines
515 B
Bash
12 lines
515 B
Bash
|
#!/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/slsk-batchdl_osx-arm64.zip
|
||
|
zip -r slsk-batchdl/bin/zips/slsk-batchdl_osx-arm64.zip slsk-batchdl/bin/Release/net6.0/osx-arm64/publish
|