Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

Commit cd5f671

Browse files
committed
Added script validation.
1 parent 1f5de4c commit cd5f671

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ jobs:
6666
with:
6767
arch: x64
6868

69-
- name: Build everything
69+
- name: Build everything and verify
7070
run: |
7171
./dist.release.bat
72-
73-
- name: Verify
74-
run: |
75-
./verify.ps1

dist.debug.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
rmdir /S /Q bin
22
CALL build.net35.bat Debug
3+
IF %ERRORLEVEL% NEQ 0 goto failed
4+
5+
echo succeeded.
6+
exit /b 0
7+
8+
:failed
9+
echo failed.
10+
exit /b 1

dist.release.bat

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
rmdir /S /Q bin
22
CALL build.net35.bat Release
3-
powershell -file sign.ps1
3+
powershell -ExecutionPolicy Bypass -file sign.ps1
44
CALL build.installer.bat
5-
powershell -file sign.installers.ps1
6-
powershell -file sha1.ps1
5+
powershell -ExecutionPolicy Bypass -file sign.installers.ps1
6+
IF %ERRORLEVEL% NEQ 0 goto failed
7+
powershell -ExecutionPolicy Bypass -file verify.ps1
8+
IF %ERRORLEVEL% NEQ 0 goto failed
9+
powershell -ExecutionPolicy Bypass -file sha1.ps1
10+
IF %ERRORLEVEL% NEQ 0 goto failed
11+
12+
echo succeeded.
13+
exit /b 0
14+
15+
:failed
16+
echo failed.
17+
exit /b 1

0 commit comments

Comments
 (0)