-
Notifications
You must be signed in to change notification settings - Fork 875
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
1 parent
39a39b4
commit 32f6264
Showing
3 changed files
with
28 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
VERSION := 0.4.4 | ||
SHORTVERSION := 0.4.4 | ||
VERSION := 0.4.6 | ||
SHORTVERSION := 0.4.6 | ||
|
||
.PHONY: windows package-windows linux package-linux darwin package-darwin clean | ||
|
||
define fpm-debian-build | ||
define fpm-debian-build | ||
echo "Running fpm-debian-build" && \ | ||
PKG_ARCH=$1 && \ | ||
VERSION=$2 && \ | ||
|
@@ -17,28 +17,30 @@ define fpm-debian-build | |
chmod -R 755 $$WORKDIR && \ | ||
\ | ||
cp $$INSTALLER_RESOURCES/firefly.desktop $$WORKDIR/usr/share/applications && \ | ||
chmod 664 $$WORKDIR/usr/share/applications/firefly.desktop && \ | ||
cp $$INSTALLER_RESOURCES/firefly_256.png $$WORKDIR/usr/share/icons/hicolor/256x256/apps/firefly.png && \ | ||
chmod 664 $$WORKDIR/usr/share/icons/hicolor/256x256/apps/firefly.png && \ | ||
\ | ||
cp $3 $$WORKDIR/usr/bin/firefly-bin && \ | ||
cp $$INSTALLER_RESOURCES/firefly.sh $$WORKDIR/usr/bin/firefly && \ | ||
\ | ||
chmod -x $$WORKDIR/usr/bin/firefly-bin && \ | ||
chmod +x $$WORKDIR/usr/bin/firefly && \ | ||
chmod 664 $$WORKDIR/usr/bin/firefly-bin && \ | ||
chmod 775 $$WORKDIR/usr/bin/firefly && \ | ||
\ | ||
fpm --depends "libappindicator3-1" --license BSD --description "$$DESC" --vendor yinghuocho --maintainer "yinghuocho <[email protected]>" --url https://gofirefly.org/ -a $$PKG_ARCH -s dir -t deb -n firefly -v $$VERSION -C $$WORKDIR -f usr; | ||
endef | ||
|
||
windows: | ||
GOOS=windows GOARCH=386 go build -ldflags="-w -s -H windowsgui" -a -o firefly.exe | ||
|
||
package-windows: windows | ||
sed "s/__VERSION__/${VERSION}/g" installer/windows/firefly.nsi > firefly-${VERSION}.nsi | ||
@echo "Please execute firefly-${VERSION}.nsi under windows" | ||
|
||
linux: | ||
linux: | ||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s -linkmode internal" -a -o firefly | ||
|
||
linux32: | ||
linux32: | ||
GOOS=linux GOARCH=386 go build -ldflags="-w -s -linkmode internal" -a -o firefly32 | ||
|
||
package-linux: linux | ||
|
@@ -60,7 +62,7 @@ package-darwin: darwin | |
rm -rf firefly-${VERSION}.dmg | ||
appdmg --quiet installer/darwin/firefly-${VERSION}.dmg.json firefly-${VERSION}.dmg | ||
rm -rf installer/darwin/firefly-${VERSION}.dmg.json | ||
mv firefly-${VERSION}.dmg firefly-${VERSION}.dmg.zlib | ||
mv firefly-${VERSION}.dmg firefly-${VERSION}.dmg.zlib | ||
hdiutil convert -quiet -format UDBZ -o firefly-${VERSION}.dmg firefly-${VERSION}.dmg.zlib | ||
rm firefly-${VERSION}.dmg.zlib | ||
|
||
|
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