forked from aluxnimm/outlookcaldavsynchronizer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass through config (debug or release) to getVersion script
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
$1=$args[0] | ||
$3=$args[1] | ||
|
||
$parent = (Get-Item $1).parent.FullName | ||
|
||
$version = (Get-Item $parent"\CalDavSynchronizer\obj\Debug\CalDavSynchronizer.dll").VersionInfo.ProductVersion | ||
$version = (Get-Item $parent"\CalDavSynchronizer\obj\$3\CalDavSynchronizer.dll").VersionInfo.ProductVersion | ||
|
||
Out-File -FilePath $1"version.txt" -InputObject $version -Encoding ASCII -Width 50 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe" sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 "86B0AE3B15989A793D3FAAC6187A8136F45EB52E" %2 | ||
|
||
powershell.exe -ExecutionPolicy ByPass -File "%1getVersion.ps1" %1 | ||
powershell.exe -ExecutionPolicy ByPass -File "%1getVersion.ps1" %1 %3 | ||
set /p version=<%1version.txt | ||
"C:\Program Files (x86)\NSIS\makensis.exe" /DVERSION=%version% /DCONFIG=%3 %1SnapAppointmentsOutlookSync.nsi | ||
del %1version.txt |