Skip to content

Commit

Permalink
Created build.sh file to create the XPI files easier
Browse files Browse the repository at this point in the history
  • Loading branch information
enzob committed Oct 28, 2015
1 parent 6f360d3 commit 51a970e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions build.sh
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 ../../

0 comments on commit 51a970e

Please sign in to comment.