@@ -8,7 +8,7 @@ BUILD_DIR=builddeb
88TMP_DIR=tmpdeb
99PKGVERSION=0.0.0-dev
1010
11- MASSASTATION_ARCHIVE_NAME=MassaStation .tar.xz
11+ MASSASTATION_ARCHIVE_NAME=massastation .tar.xz
1212MASSASTATION_BINARY_NAME=massastation
1313
1414# Print error message to stderr and exit with code 1.
@@ -19,7 +19,8 @@ fatal() {
1919
2020# Install dependencies required to build the MassaStation binary.
2121install_massastation_build_dependencies () {
22- sudo apt-get install libgl1-mesa-dev xorg-dev -y || fatal " failed to install libgl1-mesa-dev xorg-dev"
22+ sudo apt-get update || fatal " failed to update apt"
23+ sudo apt-get install -y --fix-missing libgl1-mesa-dev xorg-dev || fatal " failed to install libgl1-mesa-dev xorg-dev"
2324 go install fyne.io/tools/cmd/fyne@v1.7.0 || fatal " failed to install fyne.io/tools/cmd/fyne@v1.7.0"
2425 go install github.com/go-swagger/go-swagger/cmd/swagger@latest || fatal " failed to install github.com/go-swagger/go-swagger/cmd/swagger@latest"
2526 go install golang.org/x/tools/cmd/stringer@latest || fatal " failed to install golang.org/x/tools/cmd/stringer@latest"
@@ -29,11 +30,13 @@ install_massastation_build_dependencies() {
2930build_massastation () {
3031 install_massastation_build_dependencies
3132
33+ # Ensure go install binaries are in PATH
34+ export PATH=" $PATH :$( go env GOPATH) /bin"
35+
3236 go generate ../... || fatal " go generate failed for $MASSASTATION_BINARY_NAME "
3337 export GOARCH=$ARCH
3438 export CGO_ENABLED=1
35- # -icon is based on the path of the -src flag.
36- fyne package -icon ../../int/systray/embedded/logo.png -name MassaStation --app-id com.massalabs.massastation -src ../cmd/massastation || fatal " fyne package failed for $MASSASTATION_BINARY_NAME "
39+ fyne package -src ../cmd/massastation -icon ../../int/systray/embedded/logo.png || fatal " fyne package failed for $MASSASTATION_BINARY_NAME "
3740}
3841
3942# Delete the build directory if it exists.
0 commit comments