fix
tests / package-smoke-linux (push) Skipped
tests / package-smoke-windows (push) Skipped
tests / package-smoke-macos (push) Skipped
tests / macos (push) Failing after 6s
tests / linux (push) Failing after 12s
release / create-release (push) Canceled after 0s
release / build-linux (push) Canceled after 0s
release / build-windows (push) Canceled after 0s
release / build-macos (push) Canceled after 0s
release / publish (push) Canceled after 0s
tests / windows (push) Canceled after 0s
tests / package-smoke-linux (push) Skipped
tests / package-smoke-windows (push) Skipped
tests / package-smoke-macos (push) Skipped
tests / macos (push) Failing after 6s
tests / linux (push) Failing after 12s
release / create-release (push) Canceled after 0s
release / build-linux (push) Canceled after 0s
release / build-windows (push) Canceled after 0s
release / build-macos (push) Canceled after 0s
release / publish (push) Canceled after 0s
tests / windows (push) Canceled after 0s
Signed-off-by: galeon <dertiellis@gmail.com>
This commit is contained in:
1 parent
6442514d4f
commit
2575aae5c6
2 files changed
+75
-55
No files matched your search
+23
-3
@@ -2,6 +2,27 @@ cmake_minimum_required(VERSION 3.20)
|
|||||||
|
|
||||||
project(BiLauncher VERSION 1.0.1 LANGUAGES CXX C)
|
project(BiLauncher VERSION 1.0.1 LANGUAGES CXX C)
|
||||||
|
|
||||||
|
# Канал сборки (dev / rc / релиз) не хранится в репозитории, а вычисляется
|
||||||
|
# при сборке — см. cmake/LauncherVersion.cmake. CI передаёт полную версию:
|
||||||
|
# -DLAUNCHER_BUILD_VERSION=1.0.1-rc2.
|
||||||
|
set(LAUNCHER_BUILD_VERSION "" CACHE STRING "Полная версия от CI (X.Y.Z[-rcN]); пусто — по тегу и ветке git")
|
||||||
|
set(LAUNCHER_VERSION_NUMERIC "${PROJECT_VERSION}")
|
||||||
|
set(LAUNCHER_SOURCE_DIR "${PROJECT_SOURCE_DIR}")
|
||||||
|
set(LAUNCHER_GENERATED_DIR "${PROJECT_BINARY_DIR}/generated")
|
||||||
|
set(LAUNCHER_VERSION_HEADER "${LAUNCHER_GENERATED_DIR}/launcherversion.h")
|
||||||
|
include(cmake/LauncherVersion.cmake)
|
||||||
|
message(STATUS "Версия лаунчера: ${LAUNCHER_VERSION} (канал ${LAUNCHER_CHANNEL})")
|
||||||
|
add_custom_target(launcher_version
|
||||||
|
COMMAND "${CMAKE_COMMAND}"
|
||||||
|
"-DLAUNCHER_VERSION_NUMERIC=${LAUNCHER_VERSION_NUMERIC}"
|
||||||
|
"-DLAUNCHER_SOURCE_DIR=${LAUNCHER_SOURCE_DIR}"
|
||||||
|
"-DLAUNCHER_VERSION_HEADER=${LAUNCHER_VERSION_HEADER}"
|
||||||
|
"-DLAUNCHER_BUILD_VERSION=${LAUNCHER_BUILD_VERSION}"
|
||||||
|
-P "${PROJECT_SOURCE_DIR}/cmake/LauncherVersion.cmake"
|
||||||
|
BYPRODUCTS "${LAUNCHER_VERSION_HEADER}"
|
||||||
|
COMMENT "Версия лаунчера из git"
|
||||||
|
VERBATIM)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(QT_NO_PRIVATE_MODULE_WARNING ON)
|
set(QT_NO_PRIVATE_MODULE_WARNING ON)
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Quick QuickControls2 Qml Svg Core CorePrivate Gui Network)
|
find_package(Qt6 REQUIRED COMPONENTS Quick QuickControls2 Qml Svg Core CorePrivate Gui Network)
|
||||||
@@ -144,9 +165,8 @@ target_link_libraries(BiLauncher
|
|||||||
PRIVATE Qt6::Quick Qt6::QuickControls2 Qt6::Svg Qt6::Core Qt6::CorePrivate Qt6::Gui Qt6::Network
|
PRIVATE Qt6::Quick Qt6::QuickControls2 Qt6::Svg Qt6::Core Qt6::CorePrivate Qt6::Gui Qt6::Network
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(BiLauncher PRIVATE
|
target_include_directories(BiLauncher PRIVATE "${LAUNCHER_GENERATED_DIR}")
|
||||||
LAUNCHER_VERSION="${LAUNCHER_VERSION}"
|
add_dependencies(BiLauncher launcher_version)
|
||||||
)
|
|
||||||
|
|
||||||
if(Qt6WebEngineQuick_FOUND)
|
if(Qt6WebEngineQuick_FOUND)
|
||||||
target_link_libraries(BiLauncher PRIVATE Qt6::WebEngineQuick)
|
target_link_libraries(BiLauncher PRIVATE Qt6::WebEngineQuick)
|
||||||
|
|||||||
@@ -1,74 +1,74 @@
|
|||||||
; Установщик BiLauncher для Windows (Inno Setup 6).
|
; Установщик BiLauncher для Windows (Inno Setup 6).
|
||||||
;
|
;
|
||||||
; Собирается в CI после `cmake --install`:
|
; Собирается в CI после `cmake --install`:
|
||||||
; iscc /DAppVersion=1.0.0 /DSourceDir=C:\...\stage /DOutputDir=C:\...\dist packaging\windows\BiLauncher.iss
|
; iscc /DAppVersion=1.0.0 /DSourceDir=C:\...\stage /DOutputDir=C:\...\dist packaging\windows\BiLauncher.iss
|
||||||
; SourceDir — префикс установки: bin\ с BiLauncher.exe и развёрнутым windeployqt Qt,
|
; SourceDir — префикс установки: bin\ с BiLauncher.exe и развёрнутым windeployqt Qt,
|
||||||
; share\doc\BiLauncher\ с лицензиями.
|
; share\doc\BiLauncher\ с лицензиями.
|
||||||
|
|
||||||
#ifndef AppVersion
|
#ifndef AppVersion
|
||||||
#error Передайте версию: /DAppVersion=X.Y.Z
|
#error Передайте версию: /DAppVersion=X.Y.Z
|
||||||
#endif
|
#endif
|
||||||
#ifndef SourceDir
|
#ifndef SourceDir
|
||||||
#error Передайте префикс установки: /DSourceDir=...
|
#error Передайте префикс установки: /DSourceDir=...
|
||||||
#endif
|
#endif
|
||||||
#ifndef OutputDir
|
#ifndef OutputDir
|
||||||
#define OutputDir "."
|
#define OutputDir "."
|
||||||
#endif
|
#endif
|
||||||
; VersionInfoVersion принимает только числа (X.Y.Z[.W]), поэтому у предрелиза
|
; VersionInfoVersion принимает только числа (X.Y.Z[.W]), поэтому у предрелиза
|
||||||
; (1.0.1-rc1) суффикс отрезаем; полная версия идёт в текстовые поля.
|
; (1.0.1-rc1) суффикс отрезаем; полная версия идёт в текстовые поля.
|
||||||
#if Pos("-", AppVersion) > 0
|
#if Pos("-", AppVersion) > 0
|
||||||
#define NumericVersion Copy(AppVersion, 1, Pos("-", AppVersion) - 1)
|
#define NumericVersion Copy(AppVersion, 1, Pos("-", AppVersion) - 1)
|
||||||
#else
|
#else
|
||||||
#define NumericVersion AppVersion
|
#define NumericVersion AppVersion
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; AppId не менять между версиями — по нему обновление находит прежнюю установку.
|
; AppId не менять между версиями — по нему обновление находит прежнюю установку.
|
||||||
AppId={{6E0B5C1D-8F2A-4C7E-9B3D-2A1F4E5C7B90}
|
AppId={{6E0B5C1D-8F2A-4C7E-9B3D-2A1F4E5C7B90}
|
||||||
AppName=BiLauncher
|
AppName=BiLauncher
|
||||||
AppVersion={#AppVersion}
|
AppVersion={#AppVersion}
|
||||||
AppVerName=BiLauncher {#AppVersion}
|
AppVerName=BiLauncher {#AppVersion}
|
||||||
AppPublisher=GaleonDev
|
AppPublisher=GaleonDev
|
||||||
AppPublisherURL=https://projects-live.galeonworx.com/galeon/BiLauncher
|
AppPublisherURL=https://projects-live.galeonworx.com/galeon/BiLauncher
|
||||||
AppSupportURL=https://projects-live.galeonworx.com/galeon/BiLauncher/issues
|
AppSupportURL=https://projects-live.galeonworx.com/galeon/BiLauncher/issues
|
||||||
VersionInfoVersion={#NumericVersion}
|
VersionInfoVersion={#NumericVersion}
|
||||||
VersionInfoTextVersion={#AppVersion}
|
VersionInfoTextVersion={#AppVersion}
|
||||||
VersionInfoProductTextVersion={#AppVersion}
|
VersionInfoProductTextVersion={#AppVersion}
|
||||||
DefaultDirName={autopf}\BiLauncher
|
DefaultDirName={autopf}\BiLauncher
|
||||||
DefaultGroupName=BiLauncher
|
DefaultGroupName=BiLauncher
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=yes
|
||||||
LicenseFile={#SourceDir}\share\doc\BiLauncher\LICENSE
|
LicenseFile={#SourceDir}\share\doc\BiLauncher\LICENSE
|
||||||
OutputDir={#OutputDir}
|
OutputDir={#OutputDir}
|
||||||
OutputBaseFilename=BiLauncher-{#AppVersion}-win64-setup
|
OutputBaseFilename=BiLauncher-{#AppVersion}-win64-setup
|
||||||
SetupIconFile=..\..\icons\icon.ico
|
SetupIconFile=..\..\icons\icon.ico
|
||||||
UninstallDisplayIcon={app}\bin\BiLauncher.exe
|
UninstallDisplayIcon={app}\bin\BiLauncher.exe
|
||||||
Compression=lzma2/ultra64
|
Compression=lzma2/ultra64
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
LZMANumBlockThreads=4
|
LZMANumBlockThreads=4
|
||||||
ArchitecturesAllowed=x64compatible
|
ArchitecturesAllowed=x64compatible
|
||||||
ArchitecturesInstallIn64BitMode=x64compatible
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
PrivilegesRequiredOverridesAllowed=dialog
|
PrivilegesRequiredOverridesAllowed=dialog
|
||||||
WizardStyle=modern
|
WizardStyle=modern
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
|
||||||
[Tasks]
|
[Tasks]
|
||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Excludes: "vc_redist.x64.exe"
|
Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Excludes: "vc_redist.x64.exe"
|
||||||
#ifexist SourceDir + "\bin\vc_redist.x64.exe"
|
#ifexist SourceDir + "\bin\vc_redist.x64.exe"
|
||||||
Source: "{#SourceDir}\bin\vc_redist.x64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
|
Source: "{#SourceDir}\bin\vc_redist.x64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{autoprograms}\BiLauncher"; Filename: "{app}\bin\BiLauncher.exe"
|
Name: "{autoprograms}\BiLauncher"; Filename: "{app}\bin\BiLauncher.exe"
|
||||||
Name: "{autodesktop}\BiLauncher"; Filename: "{app}\bin\BiLauncher.exe"; Tasks: desktopicon
|
Name: "{autodesktop}\BiLauncher"; Filename: "{app}\bin\BiLauncher.exe"; Tasks: desktopicon
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
#ifexist SourceDir + "\bin\vc_redist.x64.exe"
|
#ifexist SourceDir + "\bin\vc_redist.x64.exe"
|
||||||
Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "Установка Microsoft Visual C++ Runtime..."; Flags: waituntilterminated
|
Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "Установка Microsoft Visual C++ Runtime..."; Flags: waituntilterminated
|
||||||
#endif
|
#endif
|
||||||
Filename: "{app}\bin\BiLauncher.exe"; Description: "{cm:LaunchProgram,BiLauncher}"; Flags: nowait postinstall skipifsilent
|
Filename: "{app}\bin\BiLauncher.exe"; Description: "{cm:LaunchProgram,BiLauncher}"; Flags: nowait postinstall skipifsilent
|
||||||
Reference in new issue
Block a user