piliplus: 1.1.5 -> 1.1.5.1 (#475783)

This commit is contained in:
Aleksana
2026-01-01 09:05:37 +00:00
committed by GitHub
4 changed files with 17 additions and 16 deletions

View File

@@ -13,10 +13,11 @@
let let
srcInfo = lib.importJSON ./src-info.json; srcInfo = lib.importJSON ./src-info.json;
description = "Third-party Bilibili client developed in Flutter"; description = "Third-party Bilibili client developed in Flutter";
version = "1.1.5.1";
in in
flutter338.buildFlutterApplication { flutter338.buildFlutterApplication {
pname = "piliplus"; pname = "piliplus";
inherit (srcInfo) version; inherit version;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bggRGjQaUbCoE"; owner = "bggRGjQaUbCoE";
@@ -43,7 +44,7 @@ flutter338.buildFlutterApplication {
cat <<EOL > lib/build_config.dart cat <<EOL > lib/build_config.dart
class BuildConfig { class BuildConfig {
static const int versionCode = ${toString srcInfo.revCount}; static const int versionCode = ${toString srcInfo.revCount};
static const String versionName = '${srcInfo.version}'; static const String versionName = '${version}';
static const int buildTime = ${toString srcInfo.commitDate}; static const int buildTime = ${toString srcInfo.commitDate};
static const String commitHash = '${srcInfo.rev}'; static const String commitHash = '${srcInfo.rev}';
@@ -85,7 +86,7 @@ flutter338.buildFlutterApplication {
meta = { meta = {
inherit description; inherit description;
homepage = "https://github.com/bggRGjQaUbCoE/PiliPlus"; homepage = "https://github.com/bggRGjQaUbCoE/PiliPlus";
changelog = "https://github.com/bggRGjQaUbCoE/PiliPlus/releases/tag/${srcInfo.version}"; changelog = "https://github.com/bggRGjQaUbCoE/PiliPlus/releases/tag/${version}";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ulysseszhan ]; maintainers = with lib.maintainers; [ ulysseszhan ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;

View File

@@ -1186,11 +1186,11 @@
"dependency": "transitive", "dependency": "transitive",
"description": { "description": {
"name": "image_picker_ios", "name": "image_picker_ios",
"sha256": "997d100ce1dda5b1ba4085194c5e36c9f8a1fb7987f6a36ab677a344cd2dc986", "sha256": "956c16a42c0c708f914021666ffcd8265dde36e673c9fa68c81f7d085d9774ad",
"url": "https://pub.dev" "url": "https://pub.dev"
}, },
"source": "hosted", "source": "hosted",
"version": "0.8.13+2" "version": "0.8.13+3"
}, },
"image_picker_linux": { "image_picker_linux": {
"dependency": "transitive", "dependency": "transitive",
@@ -1943,21 +1943,21 @@
"dependency": "transitive", "dependency": "transitive",
"description": { "description": {
"name": "shared_preferences", "name": "shared_preferences",
"sha256": "6e8bf70b7fef813df4e9a36f658ac46d107db4b4cfe1048b477d4e453a8159f5", "sha256": "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64",
"url": "https://pub.dev" "url": "https://pub.dev"
}, },
"source": "hosted", "source": "hosted",
"version": "2.5.3" "version": "2.5.4"
}, },
"shared_preferences_android": { "shared_preferences_android": {
"dependency": "transitive", "dependency": "transitive",
"description": { "description": {
"name": "shared_preferences_android", "name": "shared_preferences_android",
"sha256": "46a46fd64659eff15f4638bbe19de43f9483f0e0bf024a9fb6b3582064bacc7b", "sha256": "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc",
"url": "https://pub.dev" "url": "https://pub.dev"
}, },
"source": "hosted", "source": "hosted",
"version": "2.4.17" "version": "2.4.18"
}, },
"shared_preferences_foundation": { "shared_preferences_foundation": {
"dependency": "transitive", "dependency": "transitive",
@@ -2541,6 +2541,6 @@
}, },
"sdks": { "sdks": {
"dart": ">=3.10.0 <4.0.0", "dart": ">=3.10.0 <4.0.0",
"flutter": "3.38.3" "flutter": "3.38.4"
} }
} }

View File

@@ -1,7 +1,6 @@
{ {
"version": "1.1.5", "rev": "3741fe54ff386f50c91e17b16046cb429648bb6a",
"rev": "a48f6b1ca52e20fb459c070a9f72d62019136350", "revCount": 4442,
"revCount": 4403, "commitDate": 1765360801,
"commitDate": 1764474094, "hash": "sha256-Y+/ukiy4DE6ofcE+PDvRdmSpAOKG4pfg7QOPyyzLvFU="
"hash": "sha256-KviltS9IC0cYl2+FKDQ535ot+ieZ21KrxRTBPxuDoe0="
} }

View File

@@ -64,13 +64,14 @@ nix_filename = package_attr('meta.position')[/([^:]+):\d+/, 1] or abort "Failed
nix_dir = File.dirname nix_filename nix_dir = File.dirname nix_filename
src_info_path = File.join nix_dir, 'src-info.json' src_info_path = File.join nix_dir, 'src-info.json'
json_write src_info_path, { json_write src_info_path, {
version: new_version,
rev: new_rev, rev: new_rev,
revCount: git_count, revCount: git_count,
commitDate: date, commitDate: date,
hash: new_hash hash: new_hash
} }
log "Updated #{src_info_path}" log "Updated #{src_info_path}"
File.write nix_filename, File.read(nix_filename).sub(old_version, new_version)
log "Updated #{nix_filename}"
pubspec_lock_path = File.join nix_dir, 'pubspec.lock.json' pubspec_lock_path = File.join nix_dir, 'pubspec.lock.json'
old_pubspec_lock = JSON.load_file pubspec_lock_path rescue abort "Failed to read #{pubspec_lock_path}" old_pubspec_lock = JSON.load_file pubspec_lock_path rescue abort "Failed to read #{pubspec_lock_path}"