mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-02-27 01:00:11 +08:00
update build scripts
This commit is contained in:
4
Scripts/rename-pkg.ps1
Normal file
4
Scripts/rename-pkg.ps1
Normal file
@@ -0,0 +1,4 @@
|
||||
$version = git describe --always --tags
|
||||
|
||||
Rename-Item ..\Build\QuickLook.msi QuickLook-$version.msi
|
||||
Compress-Archive ..\Build\Package\* ..\Build\QuickLook-$version.zip
|
||||
8
Scripts/sign-msi.ps1
Normal file
8
Scripts/sign-msi.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
if(-not (Test-Path env:CI))
|
||||
{
|
||||
$signExe = 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86\signtool.exe'
|
||||
$file = '..\Build\QuickLook.msi'
|
||||
$timestampUrl = 'http://time.certum.pl/'
|
||||
|
||||
.$signExe sign /a /v /fd sha256 /t $timestampUrl $file
|
||||
}
|
||||
8
Scripts/sign-package.ps1
Normal file
8
Scripts/sign-package.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
if(-not (Test-Path env:CI))
|
||||
{
|
||||
$signExe = 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86\signtool.exe'
|
||||
$files = gci '..\Build\Package\*' -Recurse -Include *.exe,*.dll | %{('"{0}"' -f $_.FullName)}
|
||||
$timestampUrl = 'http://time.certum.pl/'
|
||||
|
||||
.$signExe sign /a /v /fd sha256 /t $timestampUrl $files
|
||||
}
|
||||
10
Scripts/update-version.cmd
Normal file
10
Scripts/update-version.cmd
Normal file
@@ -0,0 +1,10 @@
|
||||
rem @echo off
|
||||
cd %1
|
||||
for /F "delims=" %%i in ('git describe --always --tags "--abbrev=0"') do set git_tag=%%i
|
||||
for /F "delims=" %%i in ('git describe --always --tags') do set git_revision=%%i
|
||||
echo // This file is generated by update-version.cmd > %2
|
||||
echo. >> %2
|
||||
echo using System.Reflection;>> %2
|
||||
echo. >> %2
|
||||
echo [assembly: AssemblyVersion("%git_tag%")]>> %2
|
||||
echo [assembly: AssemblyInformationalVersion("%git_revision%")]>> %2
|
||||
Reference in New Issue
Block a user