-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sh
executable file
·96 lines (59 loc) · 2.1 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
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
asar p ./ ./app.asar
mkdir -p ./build
mv ./app.asar ./build
cd ./build
# Download packages
if [ ! -f ./electron-v1.2.2-win32-x64.zip ]; then
wget https://github.com/atom/electron/releases/download/v1.2.2/electron-v1.2.2-win32-x64.zip
fi
if [ ! -f ./electron-v1.2.2-win32-ia32.zip ]; then
wget https://github.com/atom/electron/releases/download/v1.2.2/electron-v1.2.2-win32-ia32.zip
fi
if [ ! -f ./electron-v1.2.2-linux-x64.zip ]; then
wget https://github.com/atom/electron/releases/download/v1.2.2/electron-v1.2.2-linux-x64.zip
fi
if [ ! -f ./electron-v1.2.2-linux-ia32.zip ]; then
wget https://github.com/atom/electron/releases/download/v1.2.2/electron-v1.2.2-linux-ia32.zip
fi
if [ ! -f ./electron-v1.2.2-darwin-x64.zip ]; then
wget https://github.com/atom/electron/releases/download/v1.2.2/electron-v1.2.2-darwin-x64.zip
fi
mkdir -p ./lw/resources
cp ./app.asar ./lw/resources/app.asar
# Windows
if [ ! -f ./party-youtube-downloader-windows-ia32.zip ]; then
cp ./electron-v1.2.2-win32-ia32.zip ./party-youtube-downloader-windows-ia32.zip
fi
cd ./lw
zip -r ../party-youtube-downloader-windows-ia32.zip ./
cd ..
if [ ! -f ./party-youtube-downloader-windows-x64.zip ]; then
cp ./electron-v1.2.2-win32-x64.zip ./party-youtube-downloader-windows-x64.zip
fi
cd ./lw
zip -r ../party-youtube-downloader-windows-x64.zip ./
cd ..
# Linux
if [ ! -f ./party-youtube-downloader-linux-ia32.zip ]; then
cp ./electron-v1.2.2-linux-ia32.zip ./party-youtube-downloader-linux-ia32.zip
fi
cd ./lw
zip -r ../party-youtube-downloader-linux-ia32.zip ./
cd ..
if [ ! -f ./party-youtube-downloader-linux-x64.zip ]; then
cp ./electron-v1.2.2-linux-x64.zip ./party-youtube-downloader-linux-x64.zip
fi
cd ./lw
zip -r ../party-youtube-downloader-linux-x64.zip ./
cd ..
rm -rf ./lw
# OSX
if [ ! -f ./party-youtube-downloader-darwin.zip ]; then
cp ./electron-v1.2.2-darwin-x64.zip ./party-youtube-downloader-darwin.zip
fi
mkdir -p ./darwin/Electron.app/Contents/Resources/
cp ./app.asar ./darwin/Electron.app/Contents/Resources/
cd ./darwin/
zip -r ../party-youtube-downloader-darwin.zip ./
cd ..
rm -rf ./darwin