Skip to content

Commit ecf23f1

Browse files
author
liw003
committed
bx
1 parent 84129dc commit ecf23f1

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ www/js
1010
www/js/*
1111
www/css
1212
www/css/*
13-
www/README.html
13+
www/README.html
14+
hash.txt

gulpfile.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ function beijingtime() {
2929
function getugliyconfig() {
3030
const global_defs = {
3131
__BUILD_TIME__: beijingtime(),
32-
__BUILD_MOD__: `${buidMode}-${HASHVALUE || ""}`,
32+
__BUILD_MOD__: `${buidMode} ${HASHVALUE || ""}`,
3333
};
3434

35+
36+
3537
const ugliyconfigDebug = {
3638
mangle: false,
3739
output: {
@@ -68,6 +70,7 @@ function getugliyconfig() {
6870
},
6971
};
7072

73+
console.log("global_defs",global_defs)
7174
var ugliyconfig =
7275
process.argv[2] == "dev" ? ugliyconfigDebug : ugliyconfigRelease;
7376

@@ -179,10 +182,11 @@ gulp.task("calHash", function (cb) {
179182
sha256 = crypto.createHash("sha256");
180183
HASHVALUE = sha256.update(b64).digest("hex").substring(0,8);
181184

185+
console.log('HASHVALUE',HASHVALUE)
182186

183187
let commit = fs.readFileSync('hash.txt').toString()
184-
HASHVALUE = commit.trim() + "-" + HASHVALUE;
185-
188+
HASHVALUE = `cmt: ${commit.trim()} hash: ${HASHVALUE}`;
189+
console.log('HASHVALUE',HASHVALUE)
186190
cb();
187191
});
188192

src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
(async function () {
3-
const __BUILD_MOD__ = ''
4-
const __BUILD_TIME__ = ''
3+
54
interface InputData {
65
prefix: string;
76
pubkey: string;
@@ -397,9 +396,12 @@ const __BUILD_TIME__ = ''
397396
};
398397

399398
let btime = document.getElementById("build") as HTMLElement;
400-
btime.innerText = `${__BUILD_MOD__}\n${__BUILD_TIME__} `;
399+
400+
btime.innerText = `Package:${__BUILD_MOD__} \n ${__BUILD_TIME__} `;
401+
401402

402403
(async function initDefaultValues() {
404+
403405
console.log(location.hash);
404406
let search = new URLSearchParams(location.hash);
405407

0 commit comments

Comments
 (0)