Fixed directory structure, removed buildxpi.sh and added mkxpi
This commit is contained in:
parent
348b5cce6b
commit
4ca756a5eb
10 changed files with 58 additions and 0 deletions
|
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 568 B After Width: | Height: | Size: 568 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
58
mkxpi
Executable file
58
mkxpi
Executable file
|
|
@ -0,0 +1,58 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# A simple script to make xpi files.
|
||||
# Version: 0.1
|
||||
#
|
||||
# Patched by Johannes Findeisen to work more usefull.
|
||||
# Website: http://hanez.org
|
||||
#
|
||||
# It expects a directory structure like this:
|
||||
# /install.rdf - Installation RDF
|
||||
# /install.js - Installation JavaSript
|
||||
# /chrome/ - will make the <project>.jar file here.
|
||||
# /chrome/content/ - project content files
|
||||
# /chrome/locale/ - project locale files
|
||||
# /chrome/skin/ - project skin files
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "Usage: mkxpi <Project_Name> <Version>"
|
||||
}
|
||||
|
||||
path=`pwd`
|
||||
|
||||
echo $path;
|
||||
|
||||
project=$1
|
||||
|
||||
version=$2
|
||||
|
||||
if [ "1$project" = "1" ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "1$version" = "1" ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd $path
|
||||
|
||||
cd chrome
|
||||
|
||||
jar -cfM $project.jar ./content ./skin ./locale
|
||||
|
||||
cd $path
|
||||
|
||||
jar -cfM $project-$version-fx.xpi ./chrome/$project.jar ./install.rdf
|
||||
|
||||
echo "Cleaning up..."
|
||||
|
||||
cd $path
|
||||
|
||||
rm -f ./chrome/$project.jar
|
||||
|
||||
echo "Done!"
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue