Skip to content

Commit de856e6

Browse files
authored
Merge pull request #47 from oblivioncth/dev
Merge to master for v0.7.5
2 parents 188c94f + a273a6d commit de856e6

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

.github/workflows/build-fil-windows.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
lib_linkage: [static] #[static, shared] shared is broken for since CLIFp has to be static
21-
include:
22-
#- lib_linkage: shared
23-
# cmake_bsl: ON
24-
- lib_linkage: static
25-
cmake_bsl: OFF
20+
linkage: [{type: static, cmake_bsl: OFF}] #shared is broken for since CLIFp has to be static
2621
runs-on: windows-latest
2722
env:
2823
vs_dir: C:/Program Files/Microsoft Visual Studio/2022/Enterprise
@@ -40,11 +35,11 @@ jobs:
4035
version: 6.5.1
4136
os: windows
4237
compiler: msvc2022
43-
linkage: ${{ matrix.lib_linkage }}
38+
linkage: ${{ matrix.linkage.type }}
4439
path: ${{ env.qt_install_dir }}
4540
credentials: ${{ secrets.qt_ffynnon_cred }}
4641
- name: Checkout FIL
47-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4843
with:
4944
path: ${{ env.fil_src_suffix }}
5045
fetch-depth: 0 # Required for verbose versioning to work correctly
@@ -55,7 +50,7 @@ jobs:
5550
echo "Setup C++ Build Environment..."
5651
CALL "${{ env.vs_dir }}\Common7\Tools\VsDevCmd.bat" -arch=amd64
5752
echo "Configure CMake using Qt wrapper..."
58-
CALL "${{ env.qt_cmake }}" -G "${{ env.cmake_gen }}" -S "${{ env.fil_src_dir}}" -B "${{ env.fil_build_dir }}" -D BUILD_SHARED_LIBS=${{ matrix.cmake_bsl }}
53+
CALL "${{ env.qt_cmake }}" -G "${{ env.cmake_gen }}" -S "${{ env.fil_src_dir}}" -B "${{ env.fil_build_dir }}" -D BUILD_SHARED_LIBS=${{ matrix.linkage.cmake_bsl }}
5954
echo "Changing to build directory..."
6055
cd "%fil_build_dir%"
6156
echo "Building FIL release..."
@@ -70,7 +65,7 @@ jobs:
7065
$artifact_name=$((Get-ChildItem -Path "${{ env.fil_package_path }}" -Filter *.zip)[0].BaseName)
7166
echo "current_artifact_name=$artifact_name" >> $Env:GITHUB_ENV
7267
- name: Upload FIL build artifact
73-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
7469
with:
7570
name: ${{ env.current_artifact_name }}
7671
path: ${{ env.fil_install_path }}

.github/workflows/master-pull-request-merge-reaction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- name: Download built static FIL artifact (Windows)
71-
uses: actions/download-artifact@v3
71+
uses: actions/download-artifact@v4
7272
with:
7373
path: ${{ env.artifacts_path }}
7474
- name: Zip up release artifacts

CMakeLists.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ cmake_minimum_required(VERSION 3.24.0...3.26.0)
66
# Project
77
# NOTE: DON'T USE TRAILING ZEROS IN VERSIONS
88
project(FIL
9-
VERSION 0.7.4
9+
VERSION 0.7.5
1010
LANGUAGES CXX
1111
DESCRIPTION "Flashpoint Importer for Launchers"
1212
)
1313

1414
# Get helper scripts
1515
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FetchOBCMake.cmake)
16-
fetch_ob_cmake("v0.3.4")
16+
fetch_ob_cmake("v0.3.5")
1717

1818
# Initialize project according to standard rules
1919
include(OB/Project)
2020
ob_standard_project_setup()
2121

2222
# Additional Project Variables
23-
set(TARGET_FP_VERSION_PREFIX 12.1)
23+
set(TARGET_FP_VERSION_PREFIX 13.0)
2424

2525
# Configuration options
2626
# Handled by fetched libs, but set this here formally since they aren't part of the main project
@@ -40,6 +40,7 @@ enable_language("RC")
4040

4141
set(FIL_QT_COMPONENTS
4242
Core
43+
Core5Compat
4344
Gui
4445
Network
4546
Widgets
@@ -64,18 +65,18 @@ set(FIL_QX_COMPONENTS
6465

6566
include(OB/FetchQx)
6667
ob_fetch_qx(
67-
REF "v0.5.6"
68+
REF "v0.5.7"
6869
COMPONENTS
6970
${FIL_QX_COMPONENTS}
7071
)
7172

7273
# Fetch libfp (build and import from source)
7374
include(OB/Fetchlibfp)
74-
ob_fetch_libfp("v0.5.2")
75+
ob_fetch_libfp("v0.5.3")
7576

7677
# Fetch CLIFp (build and import from source)
7778
include(OB/FetchCLIFp)
78-
ob_fetch_clifp("v0.9.10")
79+
ob_fetch_clifp("v0.9.11")
7980

8081
# TODO: The shared build of this is essentially useless as only the CLIFp executable
8182
# is deployed, which only works if it's statically linked. There isn't a simple way

app/src/mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void MainWindow::initializeFrontendHelpActions()
202202

203203
bool MainWindow::installMatchesTargetSeries(const Fp::Install& fpInstall)
204204
{
205-
Qx::VersionNumber fpVersion = fpInstall.version();
205+
Qx::VersionNumber fpVersion = fpInstall.versionInfo()->version();
206206
return TARGET_FP_VERSION_PREFIX.isPrefixOf(fpVersion) ||
207207
TARGET_FP_VERSION_PREFIX.normalized() == fpVersion; // Accounts for if FP doesn't use a trailing zero for major releases
208208
}
@@ -239,7 +239,7 @@ void MainWindow::validateInstall(const QString& installPath, InstallType install
239239
mFlashpointInstall = std::make_shared<Fp::Install>(installPath, true);
240240
if(mFlashpointInstall->isValid())
241241
{
242-
ui->label_flashpointVersion->setText(mFlashpointInstall->nameVersionString());
242+
ui->label_flashpointVersion->setText(mFlashpointInstall->versionInfo()->fullString());
243243
if(installMatchesTargetSeries(*mFlashpointInstall))
244244
ui->icon_flashpoint_install_status->setPixmap(QPixmap(u":/ui/Valid_Install.png"_s));
245245
else

0 commit comments

Comments
 (0)