-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-gui.sh
executable file
·129 lines (110 loc) · 3.35 KB
/
build-gui.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/sh
ERASED="build"
BUILDFOLDER="build/AminoSee_build_"
TIMESTAMP=$(date +%s)
TARGET="$BUILDFOLDER$TIMESTAMP"
echo open ./build-lib.sh
sleep 1
mkdir -p build
rm -rf ./build/TOBEDELETED
mkdir -p build/TOBEDELETED
mv -v ./build/* build/TOBEDELETED
echo removing src/dist link as this blows up the size of exe
rm src/dist
# yarn upgrade
# npm upgrade
./build-credits.sh
./build-lib.sh
# ./gource.sh
# echo Requires: npm, electron, electron-packager
# echo Requires: npm, electron, electron-packager
# echo Requires: npm, electron, electron-packager
# echo "And now some bloated electron stuff"
# mkdir -p dist/root/node_modules/electron
# mkdir -p dist/root/node_modules/electron/dist
# cp -r node_modules/electron/dist/* dist/root/node_modules/electron/dist
#
# echo COPYING LIBRARIES INTO /lib
# mkdir -p lib
# mkdir -p lib/node_modules
# mkdir -p lib/node_modules/sliced/
# mkdir -p lib/node_modules/deep-defaults
# mkdir -p lib/node_modules/terminal-kit/lib/termconfig
# mkdir -p lib/node_modules/electron/dist
#
# echo GENERATE VERSION NUMBER IMPORT
npm run genversion
#
cp -v node_modules/dat.gui/build/dat.gui.min.js src/public
cp -v -r node_modules/tabulator-tables/dist src/public
sleep 1
# cp -v node_modules/sliced/index.js lib/node_modules/sliced
# cp -v node_modules/deep-defaults/lib/index.js lib/node_modules/deep-defaults/lib
# cp -v node_modules/get-cursor-position/build/Release/pos.node lib
# cp -v node_modules/open/xdg-open lib
# cp -v node_modules/terminal-kit/lib/termconfig/xterm.generic.js lib/termconfig
# # CP -V node_modules/electron/dist lib/electron/dist
# cp -r node_modules/electron/dist/* dist/root/node_modules/electron/dist
# path-to-executable/electron/dist
#
echo "Move a bunch of files into $TARGET then run pkg on it"
mkdir -p $TARGET
mkdir -p $TARGET/dna
echo COPYING LIBRARIES INTO /dist/*
mkdir -p $TARGET/dist
mkdir -p $TARGET/dist/root
# cp -r -v docs/* $TARGET/dist/root
# cp -v -r dna/megabase.fa $TARGET/dna
# cp -v -r dna/1KB_TestPattern.txt $TARGET/dna
# cp -v -r dna/3MB_TestPattern.fa $TARGET/dna
# cp -r images $TARGET
# cp -r imports $TARGET
# cp -r bin $TARGET
# cp -r src/ $TARGET
# cp -r package.json $TARGET
# cp -r README.md $TARGET
# cp -r -v docs/* $TARGET
# rm -v $TARGET/public/gource.mp4
# echo COPY AND RENAME package-electron.json $TARGET/package.json
# cp -v package-electron.json $TARGET/package.json
# cp -v electron.html $TARGET
# cp -v main.js $TARGET
# cp -v renderer.js $TARGET
# cp -r node_modules $TARGET
# mkdir "build/THIS FOLDER IS AUTOMATICALLY WIPED BY SCRIPTS"
# cd $TARGET
# pwd
# npm install -v
# npm install pkg
# npm update
# npm run gui &
# cp -r ../dist .
# electron .
# npm run electron
# RUN ELECTRON BUILD BEFORE COPYING THE DIST SHELLS, AND TESTING
# electron-packager ./ --platform=darwin,win32,linux --arch=x64 --prune --overwrite --output ./dist/electron
# npm run start --no-image
# npm run start megabase.fa --image
# cd ../../
# echo RUNNING AGAIN IN 60 seconds
# pwd
# sleep 50
# echo RUNNING AGAIN IN 10 seconds
# echo RUNNING AGAIN IN 10 seconds
# echo RUNNING AGAIN IN 10 seconds
# echo RUNNING AGAIN IN 10 seconds
# echo RUNNING AGAIN IN 10 seconds
# echo RUNNING AGAIN IN 10 seconds
# sleep 10
pwd
# cd ../
#
# open ./build.sh
pkg . --targets win-x86 --output ./dist/AminoSee_win/aminosee-win32.exe &
npm run _macos &
npm run _linux &
sleep 20
npm run _win64
npm run runmac
ln -s dist src/dist
./gource.sh