Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
125769a4
Kaydet (Commit)
125769a4
authored
Eyl 18, 2013
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Sign .msi/.msp files when build signing is enabled on Windows
Change-Id: I927d78ae898596e6425b086f4d50fc4e1b9361c1
üst
aa49a5fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
installer.pm
solenv/bin/modules/installer.pm
+49
-0
No files found.
solenv/bin/modules/installer.pm
Dosyayı görüntüle @
125769a4
...
...
@@ -1639,6 +1639,31 @@ sub run {
# Path of new installation set: $finalinstalldir
# Path of old installation set: $installer::globals::updatedatabasepath
my
$mspdir
=
installer::windows::msp::
create_msp_patch
(
$finalinstalldir
,
$includepatharrayref
,
$allvariableshashref
,
$languagestringref
,
$languagesarrayref
,
$filesinproductlanguageresolvedarrayref
);
if
(
defined
(
$ENV
{
'WINDOWS_BUILD_SIGNING'
})
&&
(
$ENV
{
'WINDOWS_BUILD_SIGNING'
}
eq
'TRUE'
)
)
{
my
$systemcall
=
"signtool.exe sign "
;
if
(
defined
(
$ENV
{
'PFXFILE'
})
)
{
$systemcall
.=
"-f $ENV{'PFXFILE'} "
;
}
if
(
defined
(
$ENV
{
'PFXPASSWORD'
})
)
{
$systemcall
.=
"-p $ENV{'PFXPASSWORD'} "
;
}
if
(
defined
(
$ENV
{
'TIMESTAMPURL'
})
)
{
$systemcall
.=
"-t $ENV{'TIMESTAMPURL'} "
;
}
else
{
$systemcall
.=
"-t http://timestamp.globalsign.com/scripts/timestamp.dll "
;
}
$systemcall
.=
$mspdir
.
"/*.msp"
;
installer::logger::
print_message
(
"... $systemcall ...\n"
);
my
$returnvalue
=
system
(
$systemcall
);
my
$infoline
=
"Systemcall: $systemcall\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
if
(
$returnvalue
)
{
$infoline
=
"ERROR: Could not execute \"$systemcall\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
else
{
$infoline
=
"Success: Executed \"$systemcall\" successfully!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
(
$is_success
,
$finalinstalldir
)
=
installer::worker::
analyze_and_save_logfile
(
$loggingdir
,
$mspdir
,
$installlogdir
,
$allsettingsarrayref
,
$languagestringref
,
$current_install_number
);
installer::worker::
clean_output_tree
();
# removing directories created in the output tree
}
...
...
@@ -1659,7 +1684,31 @@ sub run {
if
(
$allvariableshashref
->
{
'OOODOWNLOADNAME'
}
)
{
$$downloadname
=
installer::download::
set_download_filename
(
$languagestringref
,
$allvariableshashref
);
}
else
{
$$downloadname
=
installer::download::
resolve_variables_in_downloadname
(
$allvariableshashref
,
$$downloadname
,
$languagestringref
);
}
installer::systemactions::
rename_one_file
(
$finalinstalldir
.
$
installer::globals::
separator
.
$
installer::globals::
shortmsidatabasename
,
$finalinstalldir
.
$
installer::globals::
separator
.
$$downloadname
.
".msi"
);
if
(
defined
(
$ENV
{
'WINDOWS_BUILD_SIGNING'
})
&&
(
$ENV
{
'WINDOWS_BUILD_SIGNING'
}
eq
'TRUE'
)
)
{
my
$systemcall
=
"signtool.exe sign "
;
if
(
defined
(
$ENV
{
'PFXFILE'
})
)
{
$systemcall
.=
"-f $ENV{'PFXFILE'} "
;
}
if
(
defined
(
$ENV
{
'PFXPASSWORD'
})
)
{
$systemcall
.=
"-p $ENV{'PFXPASSWORD'} "
;
}
if
(
defined
(
$ENV
{
'TIMESTAMPURL'
})
)
{
$systemcall
.=
"-t $ENV{'TIMESTAMPURL'} "
;
}
else
{
$systemcall
.=
"-t http://timestamp.globalsign.com/scripts/timestamp.dll "
;
}
$systemcall
.=
$finalinstalldir
.
$
installer::globals::
separator
.
$$downloadname
.
".msi"
;
installer::logger::
print_message
(
"... $systemcall ...\n"
);
my
$returnvalue
=
system
(
$systemcall
);
my
$infoline
=
"Systemcall: $systemcall\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
if
(
$returnvalue
)
{
$infoline
=
"ERROR: Could not execute \"$systemcall\"!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
else
{
$infoline
=
"Success: Executed \"$systemcall\" successfully!\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
}
if
((
$is_success
)
&&
(
$create_download
)
&&
(
$ENV
{
'ENABLE_DOWNLOADSETS'
}
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment