-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created build.sh file to create the XPI files easier
- Loading branch information
enzob
committed
Oct 28, 2015
1 parent
6f360d3
commit 51a970e
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
# XPI Name | ||
_xpiName=NST-0.63-ko.xpi | ||
|
||
# Check if the build directory exists | ||
if [ -d ./build ] | ||
then | ||
# Clear the contents of the directory | ||
rm -rf ./build/* | ||
else | ||
mkdir ./build | ||
fi | ||
|
||
mkdir ./build/xpi | ||
|
||
# Copy the files and folders required into the build directory | ||
cp -r ./content ./build/xpi/ | ||
cp -r ./skin ./build/xpi/ | ||
cp -r ./xtk2 ./build/xpi/ | ||
cp chrome.manifest ./build/xpi/ | ||
cp install.rdf ./build/xpi/ | ||
|
||
# Remove old XPI file name | ||
rm -f $_xpiName | ||
|
||
# Create the XPI file | ||
cd ./build/xpi/ | ||
zip -X -r $_xpiName * | ||
|
||
cp $_xpiName ../../ |