-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sh
executable file
·45 lines (37 loc) · 1.66 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
#!/bin/bash
echo ==================================================
echo ' _____ ___ __ __ '
echo '|_ _| _ _ __ _ __ / _ \ / _|/ _|'
echo " | || | | | '__| '_ \| | | | |_| |_ "
echo ' | || |_| | | | | | | |_| | _| _|'
echo ' |_| \__,_|_| |_| |_|\___/|_| |_| '
echo
echo ' _ _ __ ___ _ _ '
echo '| \ | | __ _ _ __ ___ _ \ \ / (_) | _(_)'
echo "| \| |/ _\` | '_ \` _ \\| | | \\ \\ /\\ / /| | |/ / |"
echo '| |\ | (_| | | | | | | |_| |\ V V / | | <| |'
echo '|_| \_|\__,_|_| |_| |_|\__,_| \_/\_/ |_|_|\_\_|'
echo ==================================================
echo Package Builder
echo ==================================================
echo
sleep 3
echo Current Working Directory is...
pwd
echo
echo Removing existing TurnOff-NamuWiki Archive.
rm turnoff-namuwiki.zip
rm turnoff-namuwiki@alex4386.us.xpi
rm turnoff-namuwiki.dev.zip
echo Done.
echo
echo Adding Production Build Information
git rev-parse --short HEAD > production_ver.txt
echo Building TurnOff-NamuWiki Archive....
zip -r turnoff-namuwiki.zip * --exclude=*.git* --exclude=*node_modules* --exclude=*res/marketplace/* --exclude=*.DS_store --exclude=*.sh --exclude=*intelliBan/* --exclude=*res/marketplace* --exclude=*res/logo.psd
echo Building Archive for Firefox Add-on Team...
zip -r turnoff-namuwiki.dev.zip * --exclude=*res/marketplace/* --exclude=*.DS_store --exclude=*intelliBan/* --exclude=*res/marketplace* --exclude=*res/logo.psd
cp turnoff-namuwiki.zip turnoff-namuwiki@alex4386.us.xpi
echo Removing Production Build Information
rm production_ver.txt
echo