Change: make.js

This commit is contained in:
Cutls 2019-09-12 23:35:13 +09:00
parent bf69d23379
commit 8b1d5b3cb4

View File

@ -1,11 +1,10 @@
const fs = require("fs")
const readlineSync = require('readline-sync')
let ver = "Usamin (18.9.2)"
const execSync = require('child_process').execSync;
let gitHash = execSync("git rev-parse HEAD").toString().trim()
fs.writeFileSync("../../git", gitHash)
if (process.argv.indexOf("--automatic") === -1) {
let input = readlineSync.question('version string [empty: ' + ver + ' (default)]? ');
let input = require('readline-sync').question('version string [empty: ' + ver + ' (default)]? ');
if (input) {
ver = input
}