-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathinject_tag_info.bat
38 lines (30 loc) · 1.3 KB
/
inject_tag_info.bat
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
cd %CQZ_WORKSPACE%\obj
set ff_version=''
for /F %%f in (..\mozilla-release\browser\config\version_display.txt) do set ff_version=%%f
set ff_exe=%ff_version%.en-US
echo %ff_exe%
if NOT "%lang%" == "" set ff_exe=%ff_version%.%lang%
echo %ff_exe%
echo %lang%
IF "%CQZ_BUILD_64BIT_WINDOWS%"=="1" (
SET platform_prefix=win64
) ELSE (
SET platform_prefix=win32
)
set installer=dist\install\sea\cliqz-%ff_exe%.%platform_prefix%.installer.exe
set installer_msi=dist\install\sea\cliqz-%ff_exe%.%platform_prefix%.installer_msi.exe
set tmp_installer=dist\install\sea\cliqz-%ff_exe%.%platform_prefix%.installer_tmp.exe
set clean_installer=dist\install\sea\cliqz-%ff_exe%.%platform_prefix%.installer_clean.exe
rem copy clean installer for future use
copy %installer% %clean_installer%
rem Add tagged area to installer
"%GOROOT%\bin\go.exe" run ..\cliqz-helpers\certificate_tag.go -set-superfluous-cert-tag=Gact2.0Omaha -padded-length=8206 -out %tmp_installer% %installer%
del %installer%
rem inject template information
..\cliqz-helpers\ApplyTag.exe %tmp_installer% %installer% "brand=XXXXXXXXXX"
..\cliqz-helpers\ApplyTag.exe %tmp_installer% %installer_msi% "brand=MSI0002"
del %tmp_installer%
rem check installer still exist
if not exist %installer% set ERRORLEVEL=1
if not exist %installer_msi% set ERRORLEVEL=1
exit /b %ERRORLEVEL%