Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
132 lines (97 sloc) 4 KB
#
# Firefox base 64-bit turbo.me file
# https://github.com/turboapps/turbome/tree/master/firefox/release-x64/
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Firefox 64-bit image without extra plugins preconfigured for enterprise:
# * Maintenance service turned off
# * Do not submit crash reports
# * Disable default browser check
# * Disable auto updates
# See https://github.com/turboapps/turbome/tree/master/firefox/config/ for more details.
###################################
# Requirements
###################################
requires privilege:admin
requires architecture:x64
require architecture:x64
###################################
# Meta tags
###################################
meta title="Firefox 64-bit"
meta namespace="mozilla"
meta name="firefox-x64"
###################################
# Pull dependency images
###################################
using powershell,wget
###################################
# Download and install
###################################
# Create workspace folder
cmd "mkdir %SYSTEMDRIVE%\Workspace"
workdir @SYSDRIVE@\Workspace
# 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"
# Installer link
var url = "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=en-US"
# Download, install, and configure app
batch cmd
@ECHO Define install.ini
echo [Install] > install.ini
echo MaintenanceService=false >> install.ini
@ECHO Download installer
wget -O firefox.exe --no-check-certificate --no-verbose "%url%"
@ECHO Run installer
firefox.exe /INI=%SYSTEMDRIVE%\Workspace\install.ini
@ECHO Get config files and set preferences
pushd "%SYSDRIVE%\Program Files\Mozilla Firefox"
wget --no-check-certificate --no-verbose -O mozilla.cfg https://raw.githubusercontent.com/turboapps/turbome/master/firefox/config/mozilla-x64.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
cd ..\..\..\uninstall
helper.exe /SetAsDefaultAppUser
helper.exe /SetAsDefaultAppGlobal
cd ..
popd
@ECHO Configure profile
mkdir %APPDATA%\Mozilla\Firefox\
copy %SYSTEMDRIVE%\Workspace\profiles.ini %APPDATA%\Mozilla\Firefox\profiles.ini
xcopy /sy /e /I C:\Workspace\Profiles %APPDATA%\Mozilla\Firefox\Profiles
@ECHO Write script to get app version
echo $Firefox= Join-Path $env:SYSTEMDRIVE 'Program Files\Mozilla Firefox\firefox.exe' >> GetVersion.ps1
echo (Get-Item $Firefox).VersionInfo.ProductVersion >> GetVersion.ps1
# disable the launcher process (APPQ-3093)
cmd "echo $Firefox= Join-Path $env:SYSTEMDRIVE 'Program Files\Mozilla Firefox\firefox.exe' >> DisableLauncher.ps1"
cmd "echo $valueName=$Firefox + '^|Browser' >> DisableLauncher.ps1"
cmd "echo Set-ItemProperty -Path 'HKCU:\Software\Mozilla\Firefox\Launcher' -name $valueName -type qword -value 0 >> DisableLauncher.ps1"
cmd powershell -executionpolicy remotesigned -File DisableLauncher.ps1
# Get app version
cmd powershell -executionpolicy remotesigned -File GetVersion.ps1
var tag = last
meta tag=tag
###################################
# Environment Variables
###################################
env path=""
env pathext=""
###################################
# Clean up
###################################
workdir C:\
batch
rmdir C:\Workspace /s /q
rmdir C:\wget /s /q
###################################
# Startup File
###################################
startup file ("@PROGRAMFILES@\Mozilla Firefox\firefox.exe")
###################################
# Settings
###################################
isolate window:firefoxMessageWindow full