-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
47 lines (41 loc) · 1.85 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
ver='v.0.1'
echo "Cleaning packages..."
rm -rf ./releases
mkdir ./releases
echo "Preparing the releases: $ver"
echo "Building Linux versions"
fyne-cross linux -arch=*
echo "Copying artifacts..."
cp fyne-cross/dist/linux-386/impomoro.tar.xz ./releases/impomoro-linux-i386-$ver.tar.xz
cp fyne-cross/dist/linux-amd64/impomoro.tar.xz ./releases/impomoro-linux-amd64-$ver.tar.xz
cp fyne-cross/dist/linux-arm/impomoro.tar.xz ./releases/impomoro-linux-arm-$ver.tar.xz
cp fyne-cross/dist/linux-arm64/impomoro.tar.xz ./releases/impomoro-linux-arm64-$ver.tar.xz
echo "Done."
echo "Building Windows versions"
fyne-cross windows -arch=*
echo "Copying artifacts..."
cp fyne-cross/dist/windows-386/impomoro.exe.zip ./releases/impomoro-windows-i386-$ver.zip
cp fyne-cross/dist/windows-amd64/impomoro.exe.zip ./releases/impomoro-windows-amd64-$ver.zip
cp fyne-cross/dist/windows-arm64/impomoro.exe.zip ./releases/impomoro-windows-arm64-$ver.zip
echo "Done."
echo "Building FreeBSD versions"
fyne-cross freebsd -arch=*
echo "Copying artifacts..."
cp fyne-cross/dist/freebsd-amd64/impomoro.tar.xz ./releases/impomoro-freebsd-amd64-$ver.zip
cp fyne-cross/dist/freebsd-arm64/impomoro.tar.xz ./releases/impomoro-freebsd-arm64-$ver.zip
echo "Done."
echo "Building macOS versions"
fyne-cross darwin --macosx-sdk-path ~/SDKs/MacOSX11.1.sdk/ -arch=* -app-id impomoro
echo "Copying artifacts..."artifacts
# shellcheck disable=SC2164
cd fyne-cross/dist/darwin-amd64/
zip -r impomoro-macos-amd64-$ver.zip impomoro.app
# shellcheck disable=SC2164
cd ../../../fyne-cross/dist/darwin-arm64
zip -r impomoro-macos-arm64-$ver.zip impomoro.app
cd ../../../
cp fyne-cross/dist/darwin-arm64/impomoro-macos-arm64-$ver.zip ./releases/impomoro-macos-arm64-$ver.zip
cp fyne-cross/dist/darwin-amd64/impomoro-macos-amd64-$ver.zip ./releases/impomoro-macos-amd64-$ver.zip
echo "Done."
echo "The assembly is complete."