Skip to content

Commit

Permalink
Merge pull request #11 from polotto/develop
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
polotto authored Dec 7, 2020
2 parents 9e2a5ae + c3261cc commit 0e7dd56
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
18 changes: 11 additions & 7 deletions releaseCross.sh
Original file line number Diff line number Diff line change
@@ -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
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"
2 changes: 1 addition & 1 deletion systemcontext/registerfallback.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux, darwin
// +build linux darwin

package systemcontext

Expand Down

0 comments on commit 0e7dd56

Please sign in to comment.