diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..0288711 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,12 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +/misc.xml +/modules.xml +/slsk-batchdl.iml +/vcs.xml diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..91b9336 --- /dev/null +++ b/publish.sh @@ -0,0 +1,12 @@ +#!/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 \ No newline at end of file