Fetching contributors…
Cannot retrieve contributors at this time
64 lines (51 sloc) 2.53 KB
# Firefox developer edition file
# Licensed under the Apache License, Version 2.0
meta title="Firefox Developer"
meta namespace="mozilla"
meta name="firefox-developer"
using turbo/turboscript-tools:2016.3.17
cmd mkdir c:\Workspace
workdir c:\Workspace
echo import sys >
echo import requests >>
echo import re >>
echo host = "" >>
echo headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0'} >>
echo r = requests.get(host , headers=headers, timeout=10) >>
echo print("" + re.findall("(\/pub\/firefox\/nightly\/latest-mozilla-aurora/firefox-.*?\.win32\.zip)", r.text)[0]) >>
batch cmd
python > download_url.txt
set /p DOWNLOAD_URL=<download_url.txt
wget -O --no-check-certificate --no-verbose "%DOWNLOAD_URL%"
7z x -y >nul
mkdir c:\FirefoxDeveloper
robocopy firefox c:\FirefoxDeveloper *.* /e /move >nul
cd c:\FirefoxDeveloper
wget --no-check-certificate --no-verbose -O mozilla.cfg
cd browser
wget --no-check-certificate --no-verbose -O override.ini
mkdir defaults\preferences & cd defaults\preferences
wget --no-check-certificate --no-verbose -O local-settings.js
rmdir c:\Workspace /s /q
# Create a default, fix named profile.
# We pin down the name, so that we can set isolation and sync settings on that directory
copy "profiles.ini" "C:\Workspace\profiles.ini"
copy "Profiles" "C:\Workspace\Profiles"
mkdir %APPDATA%\Mozilla\Firefox\
copy C:\Workspace\profiles.ini %APPDATA%\Mozilla\Firefox\profiles.ini
robocopy /E C:\Workspace\Profiles\ %APPDATA%\Mozilla\Firefox\Profiles
workdir c:\
cmd powershell -NoProfile -ExecutionPolicy Unrestricted -Command "Import-Module Turbo; Remove-BuildTools"
cmd rmdir c:\Workspace /s /q
cmd rmdir c:\TurboBuildTools /s /q
meta website="%DOWNLOAD_URL%"
var version = dateiso
meta tag = version
isolate window:firefoxMessageWindow full
startup file ("c:\FirefoxDeveloper\firefox.exe")