-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
changelog -n "Evgeny Kuznetsov" -e "[email protected]" -p "gphotosync" CHANGELOG.md | ||
VER=$(go generate) | ||
for ARCH in amd64 386 arm arm64; do | ||
GOARCH=$ARCH CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}" | ||
GOARCH=$ARCH CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}" | ||
tar -czf release/gphotosync-$VER-linux-$ARCH.tar.gz gphotosync LICENSE README.md CHANGELOG.md SOURCE.txt | ||
fpm -t deb -s dir \ | ||
-a $ARCH \ | ||
|
@@ -57,10 +57,10 @@ jobs: | |
mv *.deb release/ | ||
done | ||
for ARCH in amd64 386; do | ||
GOOS=windows GOARCH=$ARCH go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}" | ||
GOOS=windows GOARCH=$ARCH go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}" | ||
zip -q release/gphotosync-$VER-windows-$ARCH.zip gphotosync.exe LICENSE README.md CHANGELOG.md | ||
done | ||
GOOS=darwin GOARCH=amd64 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}" | ||
GOOS=darwin GOARCH=amd64 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}" | ||
tar -czf release/gphotosync-$VER-darwin-amd64.tar.gz gphotosync LICENSE README.md CHANGELOG.md SOURCE.txt | ||
cd release | ||
fpm -s deb -t deb -a i386 *386.deb | ||
|