diff options
| author | Robert Honz <exislow+github@gmail.com> | 2023-12-20 09:17:58 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2023-12-20 09:17:58 +0100 |
| commit | 6bee034064c43c7960f2860bb5bcfcba88fb1d6f (patch) | |
| tree | dd53006b29a71f1794cfc2b2c4246aed704c4a2f /Makefile | |
| parent | 71c6c2e05fdf120f37c19c40269e5d05999226d8 (diff) | |
| download | tidal-dl-ng-6bee034064c43c7960f2860bb5bcfcba88fb1d6f.tar.gz | |
⭐️ Fixes #1 (not available metadata). GitHub action for GUI build created on macOS.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -1,3 +1,7 @@ +app_name = "TIDAL-Downloader-NG" +app_path_dist = "dist" +path_asset = "tidal_dl_ng/ui" + .PHONY: install install: ## Install the poetry environment and install the pre-commit hooks @echo "🚀 Creating virtual environment using pyenv and poetry" @@ -53,14 +57,32 @@ docs: ## Build and serve the documentation help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' -# TODO: macos Signing: https://gist.github.com/txoof/0636835d3cc65245c6288b2374799c43 .PHONY: gui -gui: ## Build and serve the documentation +gui: ## Build GUI app with PyInstaller @poetry run pyinstaller --noconfirm \ --windowed --onefile \ --name "TIDAL Downloader NG" \ --noupx \ - --icon tidal_dl_ng/ui/icon.png \ + --icon $(path_asset)/icon.png \ tidal_dl_ng/gui.py +# TODO: macos Signing: https://gist.github.com/txoof/0636835d3cc65245c6288b2374799c43 +.PHONY: gui-macos +gui-mac: gui ## Package GUI in a *.dmg file + @poetry run mkdir -p $(app_path_dist)/dmg + @poetry run mv "$(app_path_dist)/$(app_name).app" $(app_path_dist)/dmg + @poetry run create-dmg \ + --volname "$(app_name)" \ + --volicon "$(path_asset)/icon.icns" \ + --window-pos 200 120 \ + --window-size 800 600 \ + --icon-size 100 \ + --icon "$(app_name).app" 175 120 \ + --hide-extension "$(app_name).app" \ + --app-drop-link 425 120 \ + "$(app_path_dist)/$(app_name).dmg" \ + "$(app_path_dist)/dmg/" + + + .DEFAULT_GOAL := help |
