File tree Expand file tree Collapse file tree 4 files changed +55
-4
lines changed
Expand file tree Collapse file tree 4 files changed +55
-4
lines changed Original file line number Diff line number Diff line change 11.idea /
2- fyne-cross /
2+ fyne-cross /
3+ release /
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ export VERSION=0.1.1
3+
4+ if [ ! -d " scripts" ]; then
5+ echo " run from root dir"
6+ exit
7+ fi
8+
9+ echo cleaning
10+ rm -rf release/*
11+ mkdir -p release
12+
13+ # build windows
14+ sh ./scripts/buildWindows.sh
15+ code=$?
16+ if [ $code -ne 0 ]
17+ then
18+ echo windows build failed
19+ exit $code
20+ fi
21+
22+ # build linux
23+ sh ./scripts/buildLinux.sh
24+ code=$?
25+ if [ $code -ne 0 ]
26+ then
27+ echo linux build failed
28+ exit $code
29+ fi
30+
31+ echo moving files
32+ for f in ./fyne-cross/dist/* ; do
33+ file=$( cd " $f " && ls)
34+ cp " $f /$file " " release/$( basename " $f " ) -$file "
35+ done
36+
37+
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if [ -z " $VERSION " ]
4+ then
5+ echo " VERSION must be set"
6+ exit 1
7+ fi
8+
9+ fyne-cross linux -app-id com.zivoy.beatlist -app-version $VERSION -arch=* ./cmd/gui
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- VERSION=0.1.1
32
4- # working dir should be base folder
5- fyne-cross windows -app-id com.zivoy.beatlist -app-version $VERSION ./cmd/gui
3+ if [ -z " $VERSION " ]
4+ then
5+ echo " VERSION must be set"
6+ exit 1
7+ fi
8+
9+ fyne-cross windows -app-id com.zivoy.beatlist -app-version $VERSION -arch=* ./cmd/gui
You can’t perform that action at this time.
0 commit comments