Skip to content

Commit

Permalink
Add Code Signing
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Mar 29, 2024
1 parent f0c30d4 commit b7781c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Guard/Guard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<Title>2FAGuard</Title>
<Version>$(AssemblyVersion)</Version>
<Version>1.1.0</Version>
<Authors>Timo Kössler and Open Source Contributors</Authors>
<Copyright>$(Authors)</Copyright>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/timokoessler/2FAGuard</RepositoryUrl>
<FileVersion>$(AssemblyVersion)</FileVersion>
<FileVersion>$(Version)</FileVersion>
<ApplicationIcon>totp.ico</ApplicationIcon>
<AssemblyVersion>1.1.0</AssemblyVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>
<SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
<SignAssembly>False</SignAssembly>
<!--<PublishSingleFile>true</PublishSingleFile>-->
Expand Down
3 changes: 3 additions & 0 deletions Guard/Installer/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ UsePreviousTasks=yes
DisableFinishedPage=yes
PrivilegesRequiredOverridesAllowed=dialog
ArchitecturesInstallIn64BitMode=x64
SignTool=mysigntool sign /n $qOpen Source Developer, Timo Kössler$q /t $qhttp://time.certum.pl/$q /fd sha256 /d $q2FAGuard Installer$q /du $qhttps://2faguard.app$q $f
SignedUninstaller=yes
SignToolRetryCount=0

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Expand Down
10 changes: 7 additions & 3 deletions Guard/publish.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Build normal and portable app executables
dotnet publish -r win-x64 -c Release --p:PublishSingleFile=true --self-contained true -o bin\publish
dotnet publish -r win-x64 -c Release --p:PublishSingleFile=true --self-contained true -p:IsPortable=true -o bin\portable
Move-Item bin\portable\2FAGuard.exe bin\portable\2FAGuard-Portable.exe -Force
cd Installer
Start-Process -NoNewWindow -FilePath "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -ArgumentList "./installer.iss"
cd ..
# Sign
signtool.exe sign /n "Open Source Developer, Timo Kössler" /t "http://time.certum.pl/" /fd sha256 /d "2FAGuard" /du "https://2faguard.app" .\bin\publish\2FAGuard.exe .\bin\portable\2FAGuard-Portable.exe
# Create installer
Set-Location Installer
#Start-Process -NoNewWindow -FilePath "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -ArgumentList "./installer.iss"
Set-Location ..

0 comments on commit b7781c0

Please sign in to comment.