Add the Help > About Graphite dialog with build info

Closes #404
This commit is contained in:
Keavon Chambers 2021-12-16 02:31:41 -08:00
parent d4e3684744
commit 471610accd
12 changed files with 82 additions and 11 deletions

View file

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires, no-console */
const path = require("path");
const { spawnSync } = require("child_process");
const { execSync, spawnSync } = require("child_process");
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
const LicenseCheckerWebpackPlugin = require("license-checker-webpack-plugin");
@ -34,6 +34,11 @@ function generateRustLicenses() {
return eval(stdout);
}
process.env.VUE_APP_COMMIT_DATE = execSync("git log -1 --format=%cd", { encoding: "utf-8" }).trim();
process.env.VUE_APP_COMMIT_HASH = execSync("git rev-parse HEAD", { encoding: "utf-8" }).trim();
process.env.VUE_APP_COMMIT_BRANCH = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf-8" }).trim();
process.env.VUE_APP_RELEASE_SERIES = "Pre-Alpha";
module.exports = {
lintOnSave: "warning",
// https://cli.vuejs.org/guide/webpack.html