/
turbo.me
52 lines (43 loc) · 2.13 KB
/
turbo.me
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Firefox developer edition turbo.me file
# https://github.com/turboapps/turbome/tree/master/firefox
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-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
batch
echo import sys > GetLatestUrl.py
echo import requests >> GetLatestUrl.py
echo import re >> GetLatestUrl.py
echo host = "https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-aurora/" >> GetLatestUrl.py
echo headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0'} >> GetLatestUrl.py
echo r = requests.get(host , headers=headers, timeout=10) >> GetLatestUrl.py
echo print("https://ftp.mozilla.org" + re.findall("(\/pub\/firefox\/nightly\/latest-mozilla-aurora/firefox-.*?\.win32\.zip)", r.text)[0]) >> GetLatestUrl.py
batch cmd
python GetLatestUrl.py > download_url.txt
set /p DOWNLOAD_URL=<download_url.txt
wget -O firefox.win32.zip --no-check-certificate --no-verbose "%DOWNLOAD_URL%"
7z x firefox.win32.zip -y >nul
mkdir c:\FirefoxDeveloper
robocopy firefox c:\FirefoxDeveloper *.* /e /move >nul
cd c:\FirefoxDeveloper
wget --no-check-certificate --no-verbose -O mozilla.cfg https://raw.githubusercontent.com/turboapps/turbome/master/firefox/config/mozilla.cfg
cd browser
wget --no-check-certificate --no-verbose -O override.ini https://raw.githubusercontent.com/turboapps/turbome/master/firefox/config/browser/override.ini
mkdir defaults\preferences & cd defaults\preferences
wget --no-check-certificate --no-verbose -O local-settings.js https://raw.githubusercontent.com/turboapps/turbome/master/firefox/config/browser/defaults/preferences/local-settings.js
rmdir c:\Workspace /s /q
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")