fiso64 / slsk-batchdl

A batch downloader for Soulseek
GNU General Public License v3.0
216 stars 16 forks source link

macOS x64 release #34

Closed thenswan closed 4 months ago

thenswan commented 4 months ago

Hello,

is it possible to create macOS x64 release?

Thanks,

fiso64 commented 4 months ago

This is what chatgpt gave me:

#!/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 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/slsk-batchdl_osx-x64.zip
zip -r slsk-batchdl/bin/zips/slsk-batchdl_osx-x64.zip slsk-batchdl/bin/Release/net6.0/osx-x64/publish

Please update to confirm that it works

thenswan commented 4 months ago

It worked, tyvm @fiso64 ❤️

thenswan commented 4 months ago

As a follow up, I have an issue with --yt-dlp

Loading Spotify playlist
Checking if tracks exist in library..
An error occurred trying to start process 'yt-dlp' with working directory '/Users/thenswan/slsk-batchdl/slsk-batchdl/bin/Release/net6.0/osx-x64'. No such file or directory 
fiso64 commented 4 months ago

Is yt-dlp accessible in the terminal when you cd to that directory?

thenswan commented 4 months ago

No

fiso64 commented 4 months ago

As mentioned in the option descriptions, yt-dlp must be available in the terminal (i.e added to path, accessible everywhere). I don't know how to do it on macos but it's fairly standard.

thenswan commented 4 months ago

Oh got it, will check and follow up