Skip to content

Commit

Permalink
add: fix makefile for packaging part
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Le Saux committed Apr 2, 2024
1 parent 01fd71b commit 9352289
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ compile:
GOOS=${OS} GOARCH=${ARCH} $(CC) build ${LDFLAGS} -o ${BINARY}/martine-${OS}-${ARCH}/format_data${EXT} ./resources/formatter/data/format_data.go

archive:
zip ${BINARY}/martine-$(appversion)-${OS}-${ARCH}.zip ${BINARY}/martine-${OS}-${ARCH}/* ./resources/*
zip -r ${BINARY}/martine-$(appversion)-${OS}-${ARCH}.zip ${BINARY}/martine-${OS}-${ARCH}/* ./resources/*

build-linux:
@echo "Compilation for linux"
Expand Down Expand Up @@ -104,21 +104,22 @@ build-windows-i386:
package-darwin:
(make init ARCH=${ARCHITECTURE} OS=darwin)
@echo "Compilation and packaging for darwin"
fyne package -os darwin -icon ../martine-logo.png -sourceDir ${SOURCEDIR} -name martine -appVersion $(appversion)
cp -r martine.app ${BINARY}/martine-${OS}-${ARCHITECTURE}/
fyne package -os darwin -icon ../../martine-logo.png -sourceDir ${SOURCEDIR} -name martine -appVersion $(appversion)
mkdir -p ${BINARY}/martine-darwin-${ARCHITECTURE}/
cp -r martine.app ${BINARY}/martine-darwin-${ARCHITECTURE}/
(make archive ARCH=${ARCHITECTURE} OS=darwin)

package-windows:
(make init ARCH=386 OS=windows EXT=.exe)
@echo "Compilation and packaging for windows"
fyne package -os windows -icon ../martine-logo.png -sourceDir ${SOURCEDIR} -name martine -appVersion $(appversion)
fyne package -os windows -icon ../../martine-logo.png -sourceDir ${SOURCEDIR} -name martine -appVersion $(appversion)
mv martine.exe ${BINARY}/martine-${OS}-${ARCH}/
(make archive)

package-linux:
(make init)
@echo "Compilation and packaging for linux"
fyne package -os linux -icon ../martine-logo.png -sourceDir ${SOURCEDIR} -name martine -appVersion $(appversion)
fyne package -os linux -icon ../../martine-logo.png -sourceDir ${SOURCEDIR} -name martine -appVersion $(appversion)
mv martine ${BINARY}/martine-${OS}-${ARCH}/
(make archive)

Expand Down

0 comments on commit 9352289

Please sign in to comment.