forked from phw198/OutlookGoogleCalendarSync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuget-build.bat
38 lines (28 loc) · 2.02 KB
/
nuget-build.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
set RELEASE=2.9.5-alpha
REM Check for new NodaTime DB @ http://nodatime.org/tzdb/latest.txt
cd src
del Releases\OutlookGoogleCalendarSync-%RELEASE%-full.nupkg
del Releases\OutlookGoogleCalendarSync-%RELEASE%-delta.nupkg
..\nuget.exe pack OutlookGoogleCalendarSync\OutlookGoogleCalendarSync.nuspec
cd ..
REM Sign the stand-alone OGCS executable
REM src\packages\squirrel.windows.1.9.0\tools\signtool.exe sign /n "Open Source Developer, Paul Woolcock" /tr http://time.certum.pl/ /td sha256 /fd sha256 /v src\OutlookGoogleCalendarSync\bin\Release\OutlookGoogleCalendarSync.exe
REM In VS Package Manager
REM PM> Install-Package squirrel.windows -Version 1.9.0
REM PM> packages\squirrel.windows.1.9.0\tools\Squirrel --releasify OutlookGoogleCalendarSync.2.9.5-alpha.nupkg --no-msi --loadingGif=..\docs\images\ogcs128x128-animated.gif
REM Sign the Squirrel install executable
REM src\packages\squirrel.windows.1.9.0\tools\signtool.exe sign /n "Open Source Developer, Paul Woolcock" /tr http://time.certum.pl/ /td sha256 /fd sha256 /v src\Releases\Setup.exe
REM Build ZIP
PAUSE
del src\Releases\OGCS_Setup.exe
rename src\Releases\Setup.exe OGCS_Setup.exe
cd src\OutlookGoogleCalendarSync\bin\Release
del Portable_OGCS_v2.9.5.zip
"c:\Program Files\7-Zip\7z.exe" u Portable_OGCS_v2.9.4.zip -u- -up0q0r2x2y2z1w2!Portable_OGCS_v2.9.5.zip *.dll *.ps1 ErrorReportingTemplate.json logger.xml tzdb.nzd OutlookGoogleCalendarSync.exe OutlookGoogleCalendarSync.exe.config OutlookGoogleCalendarSync.pdb Console\*
"c:\Program Files\7-Zip\7z.exe" e -y Portable_OGCS_v2.9.4.zip Microsoft.Office.Interop.Outlook.DLL
"c:\Program Files\7-Zip\7z.exe" e -y Portable_OGCS_v2.9.4.zip stdole.dll
"c:\Program Files\7-Zip\7z.exe" e -y Portable_OGCS_v2.9.4.zip "Windows Defender SmartScreen Unblock.ps1"
"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.9.5.zip Microsoft.Office.Interop.Outlook.DLL
"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.9.5.zip stdole.dll
"c:\Program Files\7-Zip\7z.exe" a Portable_OGCS_v2.9.5.zip "Windows Defender SmartScreen Unblock.ps1"
cd ..\..\..\..