From 97028e503209f95a0d1e390457401a824f5eb8d5 Mon Sep 17 00:00:00 2001 From: AlexVallat Date: Sun, 1 Mar 2015 16:46:07 +0000 Subject: Add helper script for deploying to firefox android --- tools/deploy-firefox-android.bat | 5 +++++ tools/make-firefox.bat | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tools/deploy-firefox-android.bat (limited to 'tools') diff --git a/tools/deploy-firefox-android.bat b/tools/deploy-firefox-android.bat new file mode 100644 index 0000000..09cd7d0 --- /dev/null +++ b/tools/deploy-firefox-android.bat @@ -0,0 +1,5 @@ +@echo off +cd %~dp0 +call make-firefox.bat all +"%ProgramFiles(x86)%\Android\android-sdk\platform-tools\adb" push ..\dist\build\uBlock.firefox.xpi /mnt/sdcard/ +"%ProgramFiles(x86)%\Android\android-sdk\platform-tools\adb" shell am start -a android.intent.action.VIEW -c android.intent.category.DEFAULT -d file:///mnt/sdcard/uBlock.firefox.xpi -n org.mozilla.firefox/.App \ No newline at end of file diff --git a/tools/make-firefox.bat b/tools/make-firefox.bat index 804b4d1..ad57ff2 100644 --- a/tools/make-firefox.bat +++ b/tools/make-firefox.bat @@ -30,7 +30,7 @@ c:\python34\python "%~dp0\make-firefox-meta.py" %DES%\ if "%1"=="all" ( echo "*** uBlock.firefox: Creating package..." pushd %DES%\ - "%ProgramW6432%\7-Zip\7z.exe" a -tzip -mx9 -bd ..\uBlock.firefox.xpi * + "%ProgramW6432%\7-Zip\7z.exe" a -tzip -mx5 -bd ..\uBlock.firefox.xpi * popd ) -- cgit v1.1