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

Commit

Permalink
build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn committed Jun 28, 2017
1 parent d69c3d8 commit 0df8630
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
4 changes: 3 additions & 1 deletion FloatingGlucose/FloatingGlucose.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ REM creates setupRelease.exe|setupDebug.exe installer
echo Creating Signed installer file

ECHO.$(ConfigurationName)| FIND /I "nosign">Nul && (
echo Did not create setup installer

cd $(ProjectDir)\installer
%25innosetupiscc%25 /DReleaseType=$(ConfigurationName) /DMyAppVersion=%25BUILDVER%25 /O$(TargetDir) floatingglucosenosign.iss
) || (
cd $(ProjectDir)\installer
%25innosetupiscc%25 /DReleaseType=$(ConfigurationName) /DMyAppVersion=%25BUILDVER%25 /O$(TargetDir) floatingglucose.iss
Expand Down
2 changes: 1 addition & 1 deletion FloatingGlucose/installer/floatingglucose.iss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DisableProgramGroupPage=yes
OutputBaseFilename="{#MyAppName}Setup-{#ReleaseType}-{#MyAppVersion}"
Compression=lzma
SolidCompression=yes
SetupIconFile="{#SourceDir}\noun_335372_cc.ico"
SetupIconFile="{#SourceDir}\noun_335372_cc_v2.ico"

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Expand Down
68 changes: 68 additions & 0 deletions FloatingGlucose/installer/floatingglucosenosign.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "FloatingGlucose"

#define MyAppPublisher "code.bjorninge.no"
#define MyAppURL "http://code.bjorninge.no"
#define MyAppExeName "FloatingGlucose.exe"
#define SourceDir ".."
;should be set via iscc
;cd installer
;"%programfiles(x86)%/Inno Setup 5/ISCC.exe" floatingglucose.iss
;#define MyAppVersion "0.9.9test"
;#define ReleaseType "Release"

;setting up signing:
; in inno setup, go to tools->configure sign tools
; add a new tool, call it "signtool" with the following value
; "C:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe" sign /fd sha256 /tr http://time.certum.pl/ /sha1 0B360481F3F59C7F398FB0417AA4B341EB018906 $f
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
;SignTool=signtool /d $qFloatingGlucoseInstaller$q $f
AppId={{B271DEE6-C788-4604-B392-8B8DD16C97A8}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
OutputBaseFilename="{#MyAppName}Setup-{#ReleaseType}-{#MyAppVersion}"
Compression=lzma
SolidCompression=yes
SetupIconFile="{#SourceDir}\noun_335372_cc_v2.ico"

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "startup"; Description: "{cm:AutoStartProgram,{#MyAppName}}"; GroupDescription: "{cm:AdditionalIcons}"

[Files]
Source: "..\bin\{#ReleaseType}\FloatingGlucose.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\FloatingGlucose.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\FloatingGlucose.pdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\Newtonsoft.Json.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\Newtonsoft.Json.xml"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\NAudio.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\NAudio.xml"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\README_attributions.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\{#ReleaseType}\version.txt"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Dirs]
Name: "{app}"; Permissions: users-full

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: startup

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

0 comments on commit 0df8630

Please sign in to comment.