File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1010www /js /*
1111www /css
1212www /css /*
13- www /README.html
13+ www /README.html
14+ hash.txt
Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ function beijingtime() {
2929function 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments