mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-14 10:05:48 +00:00
Create inno setup for windows with sdl on appveyor
This commit is contained in:
@ -77,6 +77,8 @@ artifacts:
|
||||
name: projectM-sdl-%CONFIGURATION%-%PLATFORM%
|
||||
- path: libprojectM-%CONFIGURATION%-%PLATFORM%-%APPVEYOR_REPO_COMMIT%.zip
|
||||
name: libprojectM-%CONFIGURATION%-%PLATFORM%
|
||||
- path: msvc\Setup\%CONFIGURATION%\%PLATFORM%\*
|
||||
name: projectM-Setup-%CONFIGURATION%-%PLATFORM%
|
||||
|
||||
|
||||
#---------------------------------#
|
||||
|
||||
81
msvc/Setup.iss
Normal file
81
msvc/Setup.iss
Normal file
@ -0,0 +1,81 @@
|
||||
; This script requires Inno Setup Compiler 5.5.9 or later to compile
|
||||
; The Inno Setup Compiler (and IDE) can be found at http://www.jrsoftware.org/isinfo.php
|
||||
|
||||
; General documentation on how to use InnoSetup scripts: http://www.jrsoftware.org/ishelp/index.php
|
||||
|
||||
#ifndef Platform
|
||||
#error Platform undefined. Pass /DPlatform
|
||||
#endif
|
||||
|
||||
#ifndef Configuration
|
||||
#error Configuration undefined. Pass /DConfiguration
|
||||
#endif
|
||||
|
||||
#define MyAppName "projectM"
|
||||
#define MyAppInstallerVersion GetFileVersion("projectM.exe")
|
||||
#define MyAppPublisher "projectM Team"
|
||||
#define MyAppPublisherURL "https://github.com/mancoast/projectm"
|
||||
#define MyAppURL "https://github.com/projectM-visualizer/projectm"
|
||||
#define MyAppExeName "projectM.exe"
|
||||
#define MyAppIcoName "projectm_qDj_icon.ico"
|
||||
|
||||
[Setup]
|
||||
AppId={{82DAD0F1-77DF-47FE-9FEE-123FFC5695B4}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppInstallerVersion}
|
||||
VersionInfoVersion={#MyAppInstallerVersion}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppPublisherURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
AppCopyright=Copyright (C) 2019 {#MyAppPublisher}
|
||||
BackColor=clWhite
|
||||
BackSolid=yes
|
||||
DefaultDirName={pf}\{#MyAppName}
|
||||
DefaultGroupName={#MyAppName}
|
||||
OutputBaseFilename=projectM-v{#MyAppInstallerVersion}-Setup
|
||||
OutputDir=..\..\Setup\{#Configuration}\{#Platform}
|
||||
Compression=lzma2
|
||||
InternalCompressLevel=ultra64
|
||||
SolidCompression=yes
|
||||
DisableDirPage=yes
|
||||
DisableReadyPage=yes
|
||||
SetupIconFile={#MyAppIcoName}
|
||||
WizardImageStretch=no
|
||||
WindowResizable=no
|
||||
CloseApplications=yes
|
||||
ChangesEnvironment=yes
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
LicenseFile=LICENSE.txt
|
||||
WizardImageFile=setup_inno.bmp
|
||||
WizardSmallImageFile=setup_inno_small.bmp
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; \
|
||||
GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\projectM"; Filename: "{app}\projectM.exe"; WorkingDir: "{app}"
|
||||
Name: "{group}\Uninstall projectM"; Filename: "{uninstallexe}"
|
||||
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; \
|
||||
IconFilename: "{app}\{#MyAppIcoName}"; Tasks: desktopicon
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl";
|
||||
|
||||
[Types]
|
||||
Name: "full"; Description: "Full installation"
|
||||
|
||||
[Components]
|
||||
|
||||
[Files]
|
||||
DestDir: "{app}"; Flags: ignoreversion recursesubdirs; Source:"*"
|
||||
|
||||
[UninstallDelete]
|
||||
; Deletes the entire installation directory, including files and subdirectories
|
||||
Type: filesandordirs; Name: "{app}";
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\projectM.exe"; Description: "Launch projectM application"; \
|
||||
Flags: postinstall nowait skipifsilent unchecked
|
||||
|
||||
BIN
msvc/projectM.aps
Normal file
BIN
msvc/projectM.aps
Normal file
Binary file not shown.
@ -61,8 +61,8 @@ END
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 3,1,0,0
|
||||
PRODUCTVERSION 3,1,0,0
|
||||
FILEVERSION 3,1,1,0
|
||||
PRODUCTVERSION 3,1,1,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@ -84,7 +84,7 @@ BEGIN
|
||||
VALUE "LegalCopyright", "Copyright (C) 2019 projectM Team"
|
||||
VALUE "OriginalFilename", "projectM.exe"
|
||||
VALUE "ProductName", "projectM"
|
||||
VALUE "ProductVersion", "3.1"
|
||||
VALUE "ProductVersion", "3.1.1.0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
@ -40,13 +40,13 @@
|
||||
<_ProjectFileVersion>10.0.20506.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">projectM-sdl\Debug\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">projectMSDL.dir\Debug\</IntDir>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">projectMSDL</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">projectM</TargetName>
|
||||
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.exe</TargetExt>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">projectM-sdl\Release\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">projectMSDL.dir\Release\</IntDir>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">projectMSDL</TargetName>
|
||||
<TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">projectM</TargetName>
|
||||
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.exe</TargetExt>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</GenerateManifest>
|
||||
@ -175,6 +175,14 @@
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="projectM.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="projectm_qDj_icon.ico">
|
||||
<DeploymentContent>true</DeploymentContent>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="resource.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="packages\glm.0.9.9.400\build\native\glm.targets" Condition="Exists('packages\glm.0.9.9.400\build\native\glm.targets')" />
|
||||
@ -189,4 +197,17 @@
|
||||
<Error Condition="!Exists('packages\sdl2.nuget.redist.2.0.9\build\native\sdl2.nuget.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\sdl2.nuget.redist.2.0.9\build\native\sdl2.nuget.redist.targets'))" />
|
||||
<Error Condition="!Exists('packages\sdl2.nuget.2.0.9\build\native\sdl2.nuget.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\sdl2.nuget.2.0.9\build\native\sdl2.nuget.targets'))" />
|
||||
</Target>
|
||||
<Target Name="Build-Presets" BeforeTargets="PrepareForBuild">
|
||||
<Exec Command="xcopy /Y /Q /I "$(MSBuildThisFileDirectory)../presets\presets_tryptonaut" "$(OutDir)presets"" />
|
||||
</Target>
|
||||
<Target Name="BuildPackage" AfterTargets="Build">
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)..\LICENSE.txt" "$(OutDir)LICENSE.txt"" />
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)..\AUTHORS.txt" "$(OutDir)AUTHORS.txt"" />
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)..\README.md" "$(OutDir)README.md"" />
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)projectm_qDj_icon.ico" "$(OutDir)projectm_qDj_icon.ico"" />
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)Setup.iss" "$(OutDir)Setup.iss"" />
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)setup_inno.bmp" "$(OutDir)setup_inno.bmp"" />
|
||||
<Exec Command="copy /Y "$(MSBuildThisFileDirectory)setup_inno_small.bmp" "$(OutDir)setup_inno_small.bmp"" />
|
||||
<Exec Command=""c:\Program Files (x86)\Inno Setup 5\ISCC.exe" "/DPlatform=$(Platform)" "/DConfiguration=$(Configuration)" "$(OutDir)Setup.iss"" Condition="Exists('c:\Program Files (x86)\Inno Setup 5\ISCC.exe')" />
|
||||
</Target>
|
||||
</Project>
|
||||
@ -15,4 +15,10 @@
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="projectM.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="projectm_qDj_icon.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="resource.h" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
15
msvc/resource.h
Normal file
15
msvc/resource.h
Normal file
@ -0,0 +1,15 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by projectM.rc
|
||||
//
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
BIN
msvc/setup_inno.bmp
Normal file
BIN
msvc/setup_inno.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 151 KiB |
BIN
msvc/setup_inno_small.bmp
Normal file
BIN
msvc/setup_inno_small.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Reference in New Issue
Block a user