Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple script to build latest xpi under linux. #123

Closed
multiSnow opened this issue Nov 28, 2013 · 2 comments
Closed

Add simple script to build latest xpi under linux. #123

multiSnow opened this issue Nov 28, 2013 · 2 comments

Comments

@multiSnow
Copy link

It seems that directly compressing files to xpi using deflate method is enough, so I wrote a simple script to build it under linux:

#!/bin/sh

PROG=false
XPI=private_tab-latest.xpi
FILES='install.rdf *.manifest *.js *.jsm *.xul *.xml *.html license* *.png defaults modules components locale chrome idl'

for z in 7za 7z zip
do
    if command -v $z >/dev/null 2>&1
    then
    PROG=$z
    break
    fi
done

if test $PROG = false
then
    echo "usable program not found, abort."
    exit 1
else
    echo "use $PROG to create xpi."
fi

if test $PROG = zip
then
    $PROG -9r $XPI $FILES
else
    $PROG a -tzip -mm=Deflate -mx9 -mfb258 -mpass=15 $XPI $FILES
fi

Referenced from make.bat
Save as make.sh and run it under source tree will build private_tab-latest.xpi

@Infocatcher
Copy link
Owner

Thanks!
I'll test your script later (currently I don't have access to my main PC with VirtualBox).

@Infocatcher
Copy link
Owner

Oh, sorry for too late answer...
Finally tested and added, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants