From 6d05c24d442af7fdab299f19b69091165d84fc04 Mon Sep 17 00:00:00 2001 From: amarullz Date: Mon, 24 Jun 2024 02:41:26 +0700 Subject: [PATCH] Release: 5.2.0 --- app/build.gradle | 1 + electron/ver.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index c7c6cffd..12fdc300 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,6 +13,7 @@ android { versionCode 520 versionName "5.2.0" + // Automatic Build Version buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L" setProperty("archivesBaseName", "animetv-" + versionName) diff --git a/electron/ver.js b/electron/ver.js index 78bf3cbd..e16cff95 100644 --- a/electron/ver.js +++ b/electron/ver.js @@ -46,6 +46,9 @@ var out = "module.exports =" + out_info + ";"; if (process.argv.length>0 && process.argv[process.argv.length-1]=='build'){ console.log("Writing Versions:\n"+out); fs.writeFileSync("electron/src/version.js", out); + if (!fs.existsSync("electron/builds")){ + fs.mkdirSync("electron/builds"); + } fs.writeFileSync("electron/builds/version.json", out_info); fs.writeFileSync("electron/builds/version.txt", vername); }