Skip to content

Commit

Permalink
Change build & release policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ashie committed Sep 1, 2023
1 parent 1231a53 commit 14bda9d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 33 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
(Get-Content FlexConfirmMail.csproj) -Replace '<ManifestCertificateThumbprint>[^<]*',("<ManifestCertificateThumbprint>" + $cert.Thumbprint) | Set-Content FlexConfirmMail.csproj
- name: Compile
run: |
cp Global.public.cs Global.cs
msbuild /p:Configuration=Release
- name: Make Installer
run: iscc.exe FlexConfirmMail.iss
Expand Down
12 changes: 0 additions & 12 deletions Global.public.cs

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ FlexConfirmMail for Outlook

1. 以下のファイルに埋め込まれているバージョン情報を更新する。
* Global.cs
* Global.public.cs
* FlexConfirmMail.iss
2. Visual Studio 2019でビルドする。
3. `FlexConfirmMail.iss`をInno Setupでビルドする。
Expand Down
12 changes: 8 additions & 4 deletions make-public.bat → make-signed.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,24 @@ set timestamp=http://timestamp.sectigo.com
@REM ==================
@REM Compile C# sources
@REM ==================
copy /Y Global.public.cs Global.cs
msbuild /p:Configuration=Release

@REM ==================
@REM Build an installer
@REM ==================
iscc.exe /Opublic FlexConfirmMail.iss
iscc.exe FlexConfirmMail.iss

@REM ==================
@REM Sign the installer
@REM ==================
signtool sign /t %timestamp% /fd SHA256 /sha1 %cert% public\FlexConfirmMailSetup*.exe
signtool sign /t %timestamp% /fd SHA256 /sha1 %cert% dest\FlexConfirmMailSetup*.exe

@REM ==================
@REM Add suffix to name
@REM ==================
powershell -C "Get-ChildItem public\*.exe | rename-item -newname { $_.Name -replace '.exe', '-Free.exe' }"
powershell -C "Get-ChildItem public\*.exe | rename-item -newname { $_.Name -replace '.exe', '-signed.exe' }"

@REM ==================
@REM Compress templates
@REM ==================
powershell -C "Compress-Archive -DestinationPath dest\FlexConfirmMailADMX.zip policy"
17 changes: 2 additions & 15 deletions make.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
@REM Defines the certificate to use for signatures.
@REM Use Powershell to find the available certs:
@REM
@REM PS> Get-ChildItem -Path Cert:CurrentUser\My
@REM
set cert=73E7B9D1F72EDA033E7A9D6B17BC37A96CE8513A
set timestamp=http://timestamp.sectigo.com

@REM ==================
@REM Compile C# sources
@REM ==================
Expand All @@ -14,14 +6,9 @@ msbuild /p:Configuration=Release
@REM ==================
@REM Build an installer
@REM ==================
iscc.exe FlexConfirmMail.iss

@REM ==================
@REM Sign the installer
@REM ==================
signtool sign /t %timestamp% /fd SHA256 /sha1 %cert% dest\FlexConfirmMailSetup*.exe
iscc.exe /Opublic FlexConfirmMail.iss

@REM ==================
@REM Compress templates
@REM ==================
powershell -C "Compress-Archive -DestinationPath dest\FlexConfirmMailADMX.zip policy"
powershell -C "Compress-Archive -DestinationPath dest\FlexConfirmMailADMX.zip policy"

0 comments on commit 14bda9d

Please sign in to comment.