-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added installer and updated to .net 6
- Loading branch information
1 parent
ba48a16
commit 78fc6c1
Showing
9 changed files
with
897 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
@echo off | ||
|
||
IF "%1"=="" ( | ||
SET VERSION=0.0.1 | ||
) ELSE ( | ||
SET VERSION=%1 | ||
) | ||
|
||
|
||
SET PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 6" | ||
|
||
rmdir /s /q build | ||
rmdir /s /q build_installer | ||
|
||
dotnet clean | ||
dotnet publish LenovoLegionToolkit.WPF -c release -o build /p:DebugType=None /p:FileVersion=0.0.1 /p:Version=0.0.1 | ||
dotnet publish LenovoLegionToolkit.WPF -c release -o build /p:DebugType=None /p:FileVersion=%VERSION% /p:Version=%VERSION% | ||
|
||
iscc make_installer.iss /DMyAppVersion=%VERSION% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#define public Dependency_NoExampleSetup | ||
|
||
#include "CodeDependencies\CodeDependencies.iss" | ||
|
||
#define MyAppName "Lenovo Legion Toolkit" | ||
#define MyAppNameCompact "LenovoLegionToolkit" | ||
#define MyAppPublisher "Bartosz Cichecki" | ||
#define MyAppURL "https://github.com/BartoszCichecki/LenovoLegionToolkit" | ||
#define MyAppExeName "Lenovo Legion Toolkit.exe" | ||
|
||
#ifndef MyAppVersion | ||
#define MyAppVersion "0.0.1" | ||
#endif | ||
|
||
[Setup] | ||
UsedUserAreasWarning=false | ||
AppId={{0C37B9AC-9C3D-4302-8ABB-125C7C7D83D5} | ||
AppName={#MyAppName} | ||
AppVersion={#MyAppVersion} | ||
AppPublisher={#MyAppPublisher} | ||
AppPublisherURL={#MyAppURL} | ||
AppSupportURL={#MyAppURL} | ||
AppUpdatesURL={#MyAppURL} | ||
DefaultDirName={autopf}\{#MyAppNameCompact} | ||
DisableDirPage=yes | ||
DisableProgramGroupPage=yes | ||
LicenseFile=LICENSE.md | ||
PrivilegesRequired=admin | ||
OutputBaseFilename=LenovoLegionToolkitSetup | ||
Compression=lzma | ||
SolidCompression=yes | ||
WizardStyle=modern | ||
UninstallDisplayIcon={app}\{#MyAppExeName} | ||
OutputDir=build_installer | ||
ArchitecturesInstallIn64BitMode=x64 | ||
|
||
[Code] | ||
function InitializeSetup: Boolean; | ||
begin | ||
Dependency_AddDotNet60Desktop; | ||
Result := True; | ||
end; | ||
[Languages] | ||
Name: "english"; MessagesFile: "compiler:Default.isl" | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked | ||
|
||
[Files] | ||
Source: "build\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
Source: "CodeDependencies\netcorecheck_x64.exe"; DestDir: "{app}"; Flags: ignoreversion | ||
|
||
[Icons] | ||
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" | ||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon | ||
|
||
[Run] | ||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: runascurrentuser nowait postinstall skipifsilent | ||
|
||
[UninstallDelete] | ||
Type: filesandordirs; Name: "{localappdata}\{#MyAppNameCompact}" | ||
|
||
[UninstallRun] | ||
RunOnceId: "DelAutorun"; Filename: "schtasks"; Parameters: "/Delete /TN ""LenovoLegionToolkit_Autorun_6efcc882-924c-4cbc-8fec-f45c25696f98"" /F"; Flags: runhidden |