From e42012a665699cb79a003e6c0dc4f7ea17e97960 Mon Sep 17 00:00:00 2001 From: Matthias Vanooteghem Date: Sat, 28 Oct 2023 19:35:21 +0200 Subject: [PATCH] Added publishing on Mac ARM --- .idea/.gitignore | 12 ++++++++++++ publish.sh | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 publish.sh 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