-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated version to v0.5. Unit tests improvements but sill WIP.
- Loading branch information
Gerardo Grignoli
committed
Dec 31, 2019
1 parent
bbfe355
commit 3b39515
Showing
9 changed files
with
131 additions
and
56 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
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
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,2 +1,2 @@ | ||
gsudo/tools/* | ||
gsudo.nuspec | ||
Chocolatey/gsudo/tools/* |
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,29 +1,40 @@ | ||
@pushd %~dp0 | ||
@if 'a'=='a%1' echo Missing version number | ||
@if 'a'=='a%1' goto end | ||
@if 'a%msbuild%' == 'a' set msbuild="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" | ||
@if ''=='%1' echo Missing version number | ||
@if ''=='%1' goto end | ||
@if '%msbuild%' == '' set msbuild="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" | ||
@if '%SignToolPath%' == '' set SignToolPath="C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\" | ||
|
||
@echo Building with version number v%1 | ||
|
||
del ..\gsudo\bin\*.* /q | ||
%msbuild% /t:Restore,Rebuild /p:Configuration=Release /p:WarningLevel=0 %~dp0..\gsudo.sln | ||
|
||
pause "Please sign gsudo\bin\*.exe" | ||
if not errorlevel 0 goto badend | ||
|
||
%SignToolPath%signtool.exe sign /n "Open Source Developer, Gerardo Grignoli" /fd SHA256 /tr "http://time.certum.pl" ..\gsudo\bin\gsudo.exe | ||
|
||
if not errorlevel 0 goto badend | ||
|
||
7z a Releases\gsudo.v%1.zip ..\gsudo\bin\*.* | ||
powershell (Get-FileHash Releases\gsudo.v%1.zip).hash > Releases\gsudo.v%1.zip.sha256 | ||
|
||
copy ..\gsudo\bin\*.* %~dp0\Chocolatey\gsudo\Tools | ||
:: Chocolatey | ||
copy %~dp0\..\gsudo\bin\*.* %~dp0\Chocolatey\gsudo\Tools | ||
copy Chocolatey\verification.txt.template Chocolatey\gsudo\Tools\VERIFICATION.txt | ||
@pushd %~dp0\Chocolatey\gsudo | ||
powershell -NoProfile -Command "(gc gsudo.nuspec.template) -replace '#VERSION#', '%1' | Out-File -encoding UTF8 gsudo.nuspec" | ||
echo --- >> tools\verification.txt | ||
echo Version Hashes for v%1 >> tools\verification.txt | ||
echo. >> tools\verification.txt | ||
powershell Get-FileHash tools\*.* >> tools\verification.txt | ||
echo. >> tools\verification.txt | ||
cd .. | ||
choco pack gsudo\gsudo.nuspec -outdir="%~dp0\Releases" | ||
|
||
@pushd %~dp0\Chocolatey\gsudo | ||
powershell -NoProfile -Command "(gc gsudo.nuspec.template) -replace '#VERSION#', '%1' | Out-File -encoding UTF8 gsudo.nuspec" | ||
echo --- >> tools\verification.txt | ||
echo Version Hashes for v%1 >> tools\verification.txt | ||
echo. >> tools\verification.txt | ||
powershell Get-FileHash tools\*.* >> tools\verification.txt | ||
echo. >> tools\verification.txt | ||
cd .. | ||
choco pack gsudo\gsudo.nuspec -outdir="%~dp0\Releases" | ||
@popd | ||
|
||
goto end | ||
:badend | ||
exit /b 1 | ||
:end | ||
@popd |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@pushd %~dp0\Releases | ||
@if 'a'=='a%1' echo Missing version number | ||
@if 'a'=='a%1' goto end | ||
@echo Building with version number v%1 | ||
::scoop install hub | ||
hub release create -d -a gsudo.v%1.zip -a gsudo.v%1.zip.sha256 -m "gsudo v%1" v%1 | ||
:end | ||
@popd |
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
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
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
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