diff --git a/.github/workflows/go.yml b/.github/workflows/_go.yml similarity index 100% rename from .github/workflows/go.yml rename to .github/workflows/_go.yml diff --git a/README.md b/README.md index fa79bf2..a2f9a9f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# subtitlewatcher +# ![subtitlewatcher logo](./icon.png) ## English A simple Go app to watch a folder for new video files and download the subtitle automatically. diff --git a/releaseCross.sh b/releaseCross.sh index 3ea8885..77b06a4 100755 --- a/releaseCross.sh +++ b/releaseCross.sh @@ -1,16 +1,20 @@ #!/bin/bash -# GO111MODULE=on go get github.com/lucor/fyne-cross/v2/cmd/fyne-cross - NAME_BIN="subtitlewatcher" APP_ID="subtitlewatcher/polotto/com.github" ./resources.sh -fyne-cross windows -arch=amd64 -icon "icon.png" -output "$NAME_BIN"_windows.exe && -fyne-cross linux -arch=amd64 -icon "icon.png" -output "$NAME_BIN"_linux && -fyne-cross darwin -arch=amd64 -icon "icon.png" -output "$NAME_BIN"_darwin -app-id "$APP_ID" +DIST="./fyne-cross/dist" + +NAME_WIN="$NAME_BIN""_windows" +NAME_LIN="$NAME_BIN""_linux" +NAME_DAR="$NAME_BIN""_darwin" -MAC_DIST="./fyne-cross/dist/darwin-amd64/" +fyne-cross windows -arch=amd64 -icon "icon.png" -output "$NAME_WIN".exe && +fyne-cross linux -arch=amd64 -icon "icon.png" -output $NAME_LIN && +fyne-cross darwin -arch=amd64 -icon "icon.png" -output $NAME_DAR -app-id "$APP_ID" -zip -r "$MAC_DIST""$NAME_BIN"_darwin.zip "$MAC_DIST""$NAME_BIN"_darwin.app \ No newline at end of file +zip -r "$DIST/$NAME_DAR".zip "$DIST/darwin-amd64/$NAME_DAR".app +cp "$DIST/linux-amd64/subtitlewatcher_linux.tar.gz" "$DIST/subtitlewatcher_linux.tar.gz" +cp "$DIST/windows-amd64/subtitlewatcher_windows.exe.zip" "$DIST/subtitlewatcher_windows.zip" \ No newline at end of file diff --git a/systemcontext/registerfallback.go b/systemcontext/registerfallback.go index cd0cc71..3dbb31b 100644 --- a/systemcontext/registerfallback.go +++ b/systemcontext/registerfallback.go @@ -1,4 +1,4 @@ -// +build linux, darwin +// +build linux darwin package systemcontext