Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Sign the executable and the installer on Windows
Browse files Browse the repository at this point in the history
Close #8
  • Loading branch information
ColinDuquesnoy committed Aug 1, 2015
1 parent fef2887 commit 84af1a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package/windows/setup.iss.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SetupIconFile=src\app\icons\mellowplayer.ico
Compression=lzma
SolidCompression=yes
ChangesAssociations=yes
SignTool=digicert

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Expand All @@ -48,4 +49,4 @@ Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
9 changes: 6 additions & 3 deletions tools/devhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def make_dist_dir():

files = [
exe,
os.path.join(qt_bin_dir, 'icudt53.dll'),
os.path.join(qt_bin_dir, 'icuin53.dll'),
os.path.join(qt_bin_dir, 'icuuc53.dll'),
os.path.join(qt_bin_dir, 'icudt54.dll'),
os.path.join(qt_bin_dir, 'icuin54.dll'),
os.path.join(qt_bin_dir, 'icuuc54.dll'),
os.path.join(qt_bin_dir, 'Qt5Core.dll'),
os.path.join(qt_bin_dir, 'Qt5Gui.dll'),
os.path.join(qt_bin_dir, 'Qt5Multimedia.dll'),
Expand Down Expand Up @@ -205,6 +205,9 @@ def make_dist_dir():
data.append(l)
dst.writelines(data)

print('signing mellowplayer executable')
os.system('c:\DigiCertUtil.exe sign /noInput %s' % os.path.join(dist, 'MellowPlayer.exe'))

os.environ['PATH'] += ';C:\Program Files (x86)\Inno Setup 5'
os.system('iscc %s' % os.path.join(os.getcwd(), 'setup.iss'))

Expand Down

0 comments on commit 84af1a0

Please sign in to comment.