Skip to content

Commit

Permalink
fix: prismlauncher-nightly (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Mar 9, 2024
1 parent dbcbbbf commit 7a73df9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions anda/games/prismlauncher-nightly/prismlauncher-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%global quazip_commit 6117161af08e366c37499895b00ef62f93adc345
%global tomlplusplus_commit 7eb2ffcc09f8e9890dc0b77ff8ab00fc53b1f2b8

%global commit_date %(date '+%Y%m%d')
%global commit_date 20240309
%global snapshot_info %{commit_date}.%{shortcommit}

%bcond_without qt6
Expand All @@ -32,7 +32,7 @@ Name: prismlauncher-nightly
%else
Name: prismlauncher-qt5-nightly
%endif
Version: 9.0^20240309.%{snapshot_info}
Version: 9.0^%{snapshot_info}
Release: 1%?dist
Summary: Minecraft launcher with ability to manage multiple instances
License: GPL-3.0-only AND Apache-2.0 AND LGPL-3.0-only AND GPL-3.0-or-later AND GPL-2.0-or-later AND ISC AND OFL-1.1 AND LGPL-2.1-only AND MIT AND BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LGPL-3.0-or-later
Expand Down
3 changes: 2 additions & 1 deletion anda/games/prismlauncher-nightly/update.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if filters.contains("nightly") {
let cmake = get("https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/develop/CMakeLists.txt");
let maj = find("set\\(Launcher_VERSION_MAJOR\\s+(\\d+)\\)", cmake, 1);
let min = find("set\\(Launcher_VERSION_MINOR\\s+(\\d+)\\)", cmake, 1);
rpm.version(`${maj}.${min}^${date()}.%{snapshot_info}`);
rpm.global("commit_date", date());
rpm.version(`${maj}.${min}^%{snapshot_info}`);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%global quazip_commit 6117161af08e366c37499895b00ef62f93adc345
%global tomlplusplus_commit 7eb2ffcc09f8e9890dc0b77ff8ab00fc53b1f2b8

%global commit_date %(date '+%Y%m%d')
%global commit_date 20240309
%global snapshot_info %{commit_date}.%{shortcommit}

%bcond_with qt6
Expand All @@ -32,7 +32,7 @@ Name: prismlauncher-nightly
%else
Name: prismlauncher-qt5-nightly
%endif
Version: 9.0^20240309.%{snapshot_info}
Version: 9.0^%{snapshot_info}
Release: 1%?dist
Summary: Minecraft launcher with ability to manage multiple instances
License: GPL-3.0-only AND Apache-2.0 AND LGPL-3.0-only AND GPL-3.0-or-later AND GPL-2.0-or-later AND ISC AND OFL-1.1 AND LGPL-2.1-only AND MIT AND BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LGPL-3.0-or-later
Expand Down
3 changes: 2 additions & 1 deletion anda/games/prismlauncher-qt5-nightly/update.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if filters.contains("nightly") {
let cmake = get("https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/develop/CMakeLists.txt");
let maj = find("set\\(Launcher_VERSION_MAJOR\\s+(\\d+)\\)", cmake, 1);
let min = find("set\\(Launcher_VERSION_MINOR\\s+(\\d+)\\)", cmake, 1);
rpm.version(`${maj}.${min}^${date()}.%{snapshot_info}`);
rpm.global("commit_date", date());
rpm.version(`${maj}.${min}^%{snapshot_info}`);
}
}

0 comments on commit 7a73df9

Please sign in to comment.