-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·68 lines (41 loc) · 1.05 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
rm -rf ./dist
mkdir ./dist
mkdir ./dist/assets
rm -rf ./build
mkdir ./build
npm run build
cp ./application/manifest.webapp ./dist/
cp ./application/manifest.webmanifest ./dist/
cp -r ./application/assets/ ./dist/
#create default app zip
cd dist/
mv manifest.webmanifest ../
rm ../build/flop.zip
zip -r ../build/flop.zip ./*
mv ../manifest.webmanifest ./
#create bHaCkers zip
rm ../build/flop-omnisd.zip
zip -r ../build/application.zip ./*
cd ../build/
mkdir -p flop-omnisd
touch ./flop-omnisd/metadata.json
echo '{ "version": 1, "manifestURL": "app://flop/manifest.webapp" }' > ./flop-omnisd/metadata.json
cp application.zip flop-omnisd/
cd flop-omnisd/
zip -r ../flop-omnisd.zip ./*
rm -fr ../flop-omnisd
rm ../application.zip
#create KaiOS3 zip
cd ../../
cd dist/
mv manifest.webapp ../
zip -r ../build/flop-kaios3.zip ./*
mv ../manifest.webapp ./
#create public web version
cd ../
cp ./application/manifest.webapp ./webpage/
cp ./application/manifest.webmanifest ./webpage/
cp -r ./application/assets/ ./webpage/assets/
#todo
exit