podchat-browser 12.7.2-snapshot.3 → 12.7.2-snapshot.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_buildInfo.js ADDED
@@ -0,0 +1,20 @@
1
+ const packageJSON = require("./package.json");
2
+ // const srcVersion = require("./src/buildConfig.json");
3
+ const fs = require("fs")
4
+
5
+ const isSnapshot = packageJSON.version.indexOf("snapshot") !== -1
6
+ const srcVersion = {
7
+ version: packageJSON.version,
8
+ date: new Date().toLocaleDateString("fa-IR"),
9
+ VersionInfo: `Release: ${!isSnapshot}, Snapshot: ${isSnapshot}, Is For Test: ${isSnapshot}`
10
+ };
11
+
12
+ fs.writeFile("./src/buildConfig.json", JSON.stringify(srcVersion), 'utf8', (err)=>{
13
+ if (err) {
14
+ console.error("[Builder] Build info failed.")
15
+ return console.error(err);
16
+ }
17
+
18
+ console.log("[Builder] Build info done.")
19
+ });
20
+
@@ -0,0 +1 @@
1
+ {"version":"12.7.2-snapshot.30","date":"۱۴۰۲/۲/۳۱","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}