-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
executable file
·76 lines (45 loc) · 1.26 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
62
63
64
65
66
67
68
69
70
#!/bin/sh
rm -rf ./dist
mkdir ./dist
mkdir ./dist/assets
rm -rf ./build
mkdir ./build
npm run build
#--no-source-maps --no-optimize --public-url ./ application/index.html
cp -r ./application/assets/icons ./dist/assets/icons
cp -r ./application/assets/image ./dist/assets/image
mkdir ./dist/assets/js
cp ./application/assets/js/kaiads.v5.min.js ./dist/assets/js/
#make oauth js script
./make_oauth_script.sh
cp ./application/manifest.webapp ./dist/
cp ./application/manifest.webmanifest ./dist/
cp ./application/oauth.html ./dist/
cp ./application/oauth.js ./docs/
#!/bin/bash
#create default app zip
cd dist/
mv manifest.webmanifest ../
rm ../build/greg.zip
zip -r ../build/greg.zip ./*
mv ../manifest.webmanifest ./
#create bHaCkers zip
rm ../build/greg-omnisd.zip
zip -r ../build/application.zip ./*
cd ../build/
mkdir -p greg-omnisd
touch ./greg-omnisd/metadata.json
echo '{ "version": 1, "manifestURL": "app://greg/manifest.webapp" }' > ./greg-omnisd/metadata.json
cp application.zip greg-omnisd/
cd greg-omnisd/
zip -r ../greg-omnisd.zip ./*
rm -fr ../greg-omnisd
rm ../application.zip
#create KaiOS 3.0 app zip
#rm ../build/greg-kaios3.zip
cd ../../
cd dist/
mv manifest.webapp ../
zip -r ../build/greg-kaios3.zip ./*
mv ../manifest.webapp ./
exit