-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuildgshell.sh
More file actions
executable file
·41 lines (32 loc) · 1.02 KB
/
buildgshell.sh
File metadata and controls
executable file
·41 lines (32 loc) · 1.02 KB
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
#!/bin/bash
# LiveG OS Bootstrap Toolchain
#
# Copyright (C) LiveG. All Rights Reserved.
#
# https://liveg.tech/os
# Licensed by the LiveG Open-Source Licence, which can be found at LICENCE.md.
function copyAppImage {
mkdir -p cache/$2
cp $GSHELL_PROVIDED_DIST/$1 cache/$2/gshell.AppImage
}
if [ -e cache/$PLATFORM/gshell.AppImage ]; then
echo "gShell already exists; skipping build process..."
exit
fi
if [ "$GSHELL_PROVIDED_DIST" != "" ]; then
echo "gShell dist folder provided: $GSHELL_PROVIDED_DIST"
else
mkdir -p build/gshell
pushd build/gshell
git clone https://github.com/LiveGTech/gShell.git --recurse-submodules
popd
pushd build/gshell/gShell
npm install
npm run dist
popd
export GSHELL_PROVIDED_DIST="build/gshell/gShell/dist"
fi
copyAppImage gShell-$GSHELL_VERSION.AppImage x86_64
copyAppImage gShell-$GSHELL_VERSION-arm64.AppImage arm64
copyAppImage gShell-$GSHELL_VERSION-armv7l.AppImage rpi
copyAppImage gShell-$GSHELL_VERSION-arm64.AppImage pinephone