-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9c8534
commit 0a2ee37
Showing
9 changed files
with
818 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
Chromium Portable's launchers (ChromiumPortable.exe) | ||
---------------------------------------------------- | ||
Site: http://crportable.sourceforge.net/ | ||
Copyright © 2010-2014 Aluísio Augusto Silva Gonçalves. | ||
|
||
The Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
|
||
Chromium web browser (App\Chromium\*) | ||
------------------------------------- | ||
Site: http://chromium.org/Home | ||
Full terms and conditions: (in browser) chrome://credits/ | ||
Copyright © 2006-2014 The Chromium Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in | ||
the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its contributors | ||
may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | ||
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
DAMAGE. | ||
|
||
|
||
7-Zip reduced executable (Other\Source\7zr.exe) | ||
----------------------------------------------- | ||
Site: http://7-zip.org/ | ||
Copyright © 1999-2013 Igor Pavlov. | ||
|
||
This library is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU Lesser General Public License as published | ||
by the Free Software Foundation, either version 2.1 of the License, or | ||
(at your option) any later version. | ||
|
||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
|
||
You can see the full text of the GNU Lesser General Public License at | ||
http://www.gnu.org/licenses/lgpl-2.1.html. | ||
|
||
|
||
Chrome and Chromium icons (used in the Chromium Portable icon) | ||
-------------------------------------------------------------- | ||
Site: http://tonyluffy.deviantart.com/art/chrome-184845764 | ||
Copyright © 2010-2013 tonyluffy. | ||
|
||
|
||
PortablePasswords plugin | ||
------------------------ | ||
Copyright © 2009-2013 Dan Bugglin. | ||
|
||
This library is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published | ||
by the Free Software Foundation, either version 2 of the License, or | ||
(at your option) any later version. | ||
|
||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You can see the full text of the GNU General Public License at | ||
http://www.gnu.org/licenses/gpl-2.0.html. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Chromium Portable - English translation | ||
# Copyright © 2010-2013 Aluísio Augusto Silva Gonçalves | ||
# This Source Code Form is subject to the terms of the Mozilla Public License, | ||
# v. 2.0. If a copy of the MPL was not distributed with this file, You can | ||
# obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
|
||
LangString OK 1033 "OK" | ||
LangString Cancel 1033 "Cancel" | ||
|
||
LangString UserDataPackageInUse 1033 "Another instance using this data package (${Payload.UserData}) is already running." | ||
LangString UseOldData 1033 "A previous launch of ${PortableAppName} seems to be crashed. Do you want to try to use the data from that launch?$\r$\nThe current data package will be moved to `${Payload.UserData}-$R1$R2`." | ||
LangString CannotExtractUserData 1033 "Cannot extract the user's data. The user data package may be corrupted." | ||
LangString CannotUpdateUserDataPackage 1033 "Cannot update the user data package.$\r$\nYou can try to recover your data from `$R0`." | ||
LangString RunInIncognitoMode 1033 "Do you want to run ${PortableAppName} in incognito mode?" | ||
|
||
LangString MasterPasswordInputBoxTitle 1033 "Enter Master Password" | ||
LangString MasterPasswordInputBoxText 1033 "If this is the first time you are using the Portable Passwords system, you can choose your password now." | ||
LangString InvalidMasterPassword 1033 "The provided password does not match the master password!" | ||
LangString PortablePasswordsPluginError 1033 "There was a problem with Portable Passwords, so Portable Passwords has been disabled for this ${PortableAppName} session. Do you want to continue?" | ||
LangString PortablePasswordsPluginErrorOK 1033 "There was a problem with Portable Passwords, so Portable Passwords has been disabled for this ${PortableAppName} session." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Chromium Portable - Brazilian Portuguese translation | ||
# Copyright © 2010-2013 Aluísio Augusto Silva Gonçalves | ||
# This Source Code Form is subject to the terms of the Mozilla Public License, | ||
# v. 2.0. If a copy of the MPL was not distributed with this file, You can | ||
# obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
|
||
LangString OK 1046 "OK" | ||
LangString Cancel 1046 "Cancelar" | ||
|
||
LangString UserDataPackageInUse 1046 "Outra instância usando este pacote de dados do usuário (${Payload.UserData}) já está sendo executada." | ||
LangString UseOldData 1046 "Uma execução anterior de ${PortableAppName} parece ter finalizado incorretamente. Você quer tentar utilizar os dados daquela execução?$\r$\nO pacote de dados atual será movido para `${Payload.UserData}-$R1$R2`." | ||
LangString CannotExtractUserData 1046 "Não foi possível extrair os dados do usuário. O pacote de dados correspondente pode estar corrompido." | ||
LangString CannotUpdateUserDataPackage 1046 "Não foi possível atualizar o pacote de dados do usuário.$\r$\nVocê pode tentar recuperar seus dados acessando o diretório `$R0`." | ||
LangString RunInIncognitoMode 1046 "Você deseja executar ${PortableAppName} no modo anônimo?" | ||
|
||
LangString MasterPasswordInputBoxTitle 1046 "Digitar Senha Mestre" | ||
LangString MasterPasswordInputBoxText 1046 "Se esta for a primeira vez que utiliza Senhas Portáteis, digite a nova senha no campo abaixo." | ||
LangString InvalidMasterPassword 1046 "A senha mestre informada está incorreta!" | ||
LangString PortablePasswordsPluginError 1046 "Houve um problema com o plugin de Senhas Portáteis, então elas estarão indisponíveis nesta execução de ${PortableAppName}. Deseja prosseguir?" | ||
LangString PortablePasswordsPluginErrorOK 1046 "Houve um problema com o plugin de Senhas Portáteis, então elas estarão indisponíveis nesta execução de ${PortableAppName}." |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Chromium Portable — PortableApps.com Installer custom code | ||
# © 2015, Aluísio Augusto Silva Gonçalves | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the Other\Source\License.txt file of this distribution. | ||
|
||
|
||
!include "Languages\English.nsh" | ||
!include "Languages\PortugueseBR.nsh" | ||
|
||
|
||
!macro CustomCodePreInstall | ||
StrCpy $R0 "$INSTDIR\App\Chromium\32\Data" | ||
${If} ${FileExists} $R0 | ||
#MessageBox MB_OK|MB_ICONEXCLAMATION "We have detected user data in the application folder, at $R0. This likely means at some point the Chromium executable has been run directly, bypassing the launcher (ChromiumPortable.exe).$\r$\nIf you always use the launcher, please visit chrome://version/ in Chromium Portable and make sure your profile path is not under the App directory, then remove $R0.$\r$\nOtherwise, please note that not using the launcher is unsupported " | ||
${EndIf} | ||
!macroend | ||
|
||
!macro CustomCodePostInstall | ||
# Keep this in sync with whatever the Installer does to check whether to execute CustomCodeOptionalCleanup. | ||
SectionGetFlags 1 $R0 | ||
IntOp $R0 $R0 & ${SF_SELECTED} | ||
${If} $R0 != ${SF_SELECTED} | ||
DeleteINIStr "$INSTDIR\App\AppInfo\Launcher\ChromiumPortable.ini" "Launch" "ProgramExecutable64" | ||
${EndIf} | ||
!macroend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
# Chromium Portable — Utilities | ||
# Copyright © 2010-2013 Aluísio Augusto Silva Gonçalves | ||
# This Source Code Form is subject to the terms of the Mozilla Public License, | ||
# v. 2.0. If a copy of the MPL was not distributed with this file, You can | ||
# obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
|
||
!include LogicLib.nsh | ||
!include WordFunc.nsh | ||
|
||
|
||
############### | ||
# User config # | ||
############### | ||
|
||
# Read an user setting | ||
!ifmacrondef ReadUserConfig | ||
!macro ReadUserConfig out key | ||
ClearErrors | ||
${ConfigRead} "${UserConfigPath}" "${key}=" ${out} | ||
!macroend | ||
!define ReadUserConfig "!insertmacro ReadUserConfig" | ||
!endif | ||
|
||
# Check if an user option has a specific value; use as `${If} <value> ${IsValueOfUserOption} <opt>` | ||
!macro _IsValueOfUserOption _a _b _t _f | ||
!insertmacro _LOGICLIB_TEMP | ||
${ReadUserConfig} $_LOGICLIB_TEMP "${_b}" | ||
StrCmp $_LOGICLIB_TEMP "${_a}" "${_t}" "${_f}" | ||
!macroend | ||
!define IsValueOfUserOption "IsValueOfUserOption" | ||
|
||
# Check if an user option is true | ||
!macro _IsUserOptionTrue _a _b _t _f | ||
!insertmacro _LOGICLIB_TEMP | ||
${ReadUserConfig} $_LOGICLIB_TEMP "${_b}" | ||
StrCmp $_LOGICLIB_TEMP "yes" 0 +6 | ||
StrCpy $_LOGICLIB_TEMP "true" | ||
StrCmp $_LOGICLIB_TEMP "on" 0 +4 | ||
StrCpy $_LOGICLIB_TEMP "true" | ||
StrCmp $_LOGICLIB_TEMP "ok" 0 +2 | ||
StrCpy $_LOGICLIB_TEMP "true" | ||
StrCmp $_LOGICLIB_TEMP "true" "${_t}" "${_f}" | ||
!macroend | ||
!define IsUserOptionTrue `"" IsUserOptionTrue` | ||
|
||
# Check if an user option is false | ||
!macro _IsUserOptionFalse _a _b _t _f | ||
!insertmacro _LOGICLIB_TEMP | ||
${ReadUserConfig} $_LOGICLIB_TEMP "${_b}" | ||
StrCmp $_LOGICLIB_TEMP "no" 0 +4 | ||
StrCpy $_LOGICLIB_TEMP "false" | ||
StrCmp $_LOGICLIB_TEMP "off" 0 +2 | ||
StrCpy $_LOGICLIB_TEMP "false" | ||
StrCmp $_LOGICLIB_TEMP "false" "${_t}" "${_f}" | ||
!macroend | ||
!define IsUserOptionFalse `"" IsUserOptionFalse` | ||
|
||
|
||
####################### | ||
# Launch command line # | ||
####################### | ||
|
||
!ifdef PACKAGE | ||
!define ExecString $_Custom_Parameters | ||
!else | ||
!define ExecString $1 | ||
!endif | ||
|
||
# Quote a string if it contains whitespace | ||
!macro Quote out str | ||
${WordFind} "${str}" " " "*" ${out} | ||
${If} ${out} != "${str}" | ||
StrCpy ${out} `"${str}"` | ||
${EndIf} | ||
!macroend | ||
!define Quote "!insertmacro Quote" | ||
|
||
# Append an arbitrary value to the launch command-line | ||
!macro AppendCommandLineValues str | ||
${If} "${str}" != "" | ||
StrCpy ${ExecString} "${ExecString} ${str}" | ||
${EndIf} | ||
!macroend | ||
!define AppendCommandLineValues "!insertmacro AppendCommandLineValues" | ||
|
||
# Append a switch to the launch command-line | ||
!macro AppendCommandLineSwitch name | ||
${AppendCommandLineValues} "--${name}" | ||
!macroend | ||
!define AppendCommandLineSwitch "!insertmacro AppendCommandLineSwitch" | ||
|
||
# Append an option to the launch command-line | ||
!macro AppendCommandLineOption name value | ||
${Quote} $R9 "${value}" | ||
# Now append the switch to the command line | ||
${AppendCommandLineValues} "--${name}=$R9" | ||
!macroend | ||
!define AppendCommandLineOption "!insertmacro AppendCommandLineOption" | ||
|
||
# Append an switch with a path as value to the launch command-line | ||
!macro AppendCommandLinePath name path | ||
GetFullPathName /SHORT $R9 "${path}" | ||
${If} $R9 == "" # No short name? | ||
StrCpy $R9 "${path}" | ||
${EndIf} | ||
${AppendCommandLineOption} "${name}" $R9 | ||
!macroend | ||
!define AppendCommandLinePath "!insertmacro AppendCommandLinePath" | ||
|
||
|
||
########### | ||
# Logging # | ||
########### | ||
|
||
!ifdef Debug | ||
Var _LogFile | ||
|
||
!macro LogInit message | ||
FileOpen $_LogFile "$EXEDIR\Debug.log" a | ||
FileSeek $_LogFile 0 END | ||
FileWriteUTF16LE $_LogFile "{{{$\r$\n${message}$\r$\n" | ||
!macroend | ||
!define LogInit "!insertmacro LogInit" | ||
|
||
!macro Log message | ||
FileWriteUTF16LE $_LogFile "${__FILE__}:${__LINE__}: ${message}$\r$\n" | ||
!macroend | ||
!define Log "!insertmacro Log" | ||
|
||
!macro LogEnd | ||
FileWriteUTF16LE $_LogFile "}}}$\r$\n$\r$\n" | ||
FileClose $_LogFile | ||
!macroend | ||
!define LogEnd "!insertmacro LogEnd" | ||
!else | ||
!define LogInit ";" | ||
!define Log ";" | ||
!define LogEnd ";" | ||
!endif |