From 4901d26971abc689ee9f2842f9ad99b87edfb30d Mon Sep 17 00:00:00 2001 From: ItsNotGoodName Date: Thu, 2 Nov 2023 17:44:54 -0700 Subject: [PATCH] feat: add WinSW.xml for Windows --- Taskfile.yml | 29 +++++++++++++++++------------ WinSW.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 12 deletions(-) create mode 100644 WinSW.xml diff --git a/Taskfile.yml b/Taskfile.yml index 5ec42f0..c9fdb6c 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -7,7 +7,7 @@ tasks: clean: cmds: - rm -rf dist - - mkdir -p dist + - mkdir -p dist/artifacts build-apk: internal: true @@ -62,28 +62,33 @@ tasks: LDFLAGS: -s -w -X {{.BUILD_PACKAGE_NAME}}.Version={{.BUILD_VERSION}} -X {{.BUILD_PACKAGE_NAME}}.Commit={{.BUILD_COMMIT}} -X {{.BUILD_PACKAGE_NAME}}.Date={{.BUILD_DATE}} -X {{.BUILD_PACKAGE_NAME}}.RepoURL={{.BUILD_REPO_URL}} MAIN_PACKAGE: "{{.PACKAGE_NAME}}/cmd/radiomux" - checksum: + compile-artifacts: internal: true - dir: dist/artifacts - cmds: - - sha256sum *.tar.gz *.zip *.apk > checksum.txt - - build: - deps: [clean, build-apk, build-server] dir: dist cmds: + - cp *.apk artifacts/ - for: { var: FILES } cmd: cp ../{{.ITEM}} . - - mkdir -p artifacts - - cp radiomuxplayer-release.apk artifacts/ + - for: { var: WINDOWS_FILES } + cmd: cp ../{{.ITEM}} . - tar -czf artifacts/radiomux_Linux_x86_64.tar.gz radiomux_Linux_x86_64 {{.FILES}} - tar -czf artifacts/radiomux_Linux_armv7.tar.gz radiomux_Linux_armv7 {{.FILES}} - tar -czf artifacts/radiomux_Linux_arm64.tar.gz radiomux_Linux_arm64 {{.FILES}} - tar -czf artifacts/radiomux_Darwin_arm64.tar.gz radiomux_Darwin_arm64 {{.FILES}} - - zip -q artifacts/radiomux_Windows_x86_64.zip radiomux_Windows_x86_64.exe {{.FILES}} - - task: checksum + - zip -q artifacts/radiomux_Windows_x86_64.zip radiomux_Windows_x86_64.exe {{.FILES}} {{.WINDOWS_FILES}} + - cd artifacts && sha256sum *.tar.gz *.zip *.apk > checksum.txt vars: FILES: README.md LICENSE + WINDOWS_FILES: WinSW.xml + + build: + deps: [clean, build-apk, build-server] + dir: dist + cmds: + - task: compile-artifacts build-debug: deps: [clean, build-apk-debug, build-server] + dir: dist + cmds: + - task: compile-artifacts diff --git a/WinSW.xml b/WinSW.xml new file mode 100644 index 0000000..8f57ac3 --- /dev/null +++ b/WinSW.xml @@ -0,0 +1,48 @@ + + + + + + + com.gurnain.radiomux + + RadioMux Service (powered by WinSW) + + Use your Android devices as remote controlled audio players. + + + %BASE%\radiomux.exe + + +