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); }