tts-mod-vault: 1.3.0 -> 2.0.0 (#497061)
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
{
|
||||
lib,
|
||||
flutter329,
|
||||
flutter341,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
fetchFromGitHub,
|
||||
runCommand,
|
||||
yq-go,
|
||||
nix-update-script,
|
||||
_experimental-update-script-combinators,
|
||||
}:
|
||||
|
||||
flutter329.buildFlutterApplication rec {
|
||||
flutter341.buildFlutterApplication (finalAttrs: {
|
||||
pname = "tts-mod-vault";
|
||||
version = "1.3.0";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "markomijic";
|
||||
repo = "TTS-Mod-Vault";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-BTs+4QeyVJeg415uiNXww8twQwUInHfB8voWJjeVs20=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-vreamzu+jzlgzjbEro5kE5bM1k6cL6XCG6Tsv+LEiyI=";
|
||||
};
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
@@ -32,10 +36,36 @@ flutter329.buildFlutterApplication rec {
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems ];
|
||||
|
||||
preBuild = ''
|
||||
echo 'SUPABASE_URL=https://pdrmmvvtindfbpxlcdps.supabase.co' > .env
|
||||
echo 'SUPABASE_PUBLISHABLE_KEY=sb_publishable_CF6qzs1W8zd_hcVWHSCdVw__2SRB60p' >> .env
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -m 444 -D assets/icon/tts_mod_vault_icon.png $out/share/icons/hicolor/1024x1024/apps/tts_mod_vault.png
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
pubspecSource =
|
||||
runCommand "pubspec.lock.json"
|
||||
{
|
||||
inherit (finalAttrs) src;
|
||||
nativeBuildInputs = [ yq-go ];
|
||||
}
|
||||
''
|
||||
yq eval --output-format=json --prettyPrint $src/pubspec.lock > "$out"
|
||||
'';
|
||||
updateScript = _experimental-update-script-combinators.sequence [
|
||||
(nix-update-script { })
|
||||
(
|
||||
(_experimental-update-script-combinators.copyAttrOutputToFile "tts-mod-vault.pubspecSource" ./pubspec.lock.json)
|
||||
// {
|
||||
supportedFeatures = [ ];
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Download and backup assets for your Tabletop Simulator mods";
|
||||
homepage = "https://github.com/markomijic/TTS-Mod-Vault";
|
||||
@@ -44,4 +74,4 @@ flutter329.buildFlutterApplication rec {
|
||||
mainProgram = "tts_mod_vault";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user