Adjust the version information

Add compress script
This commit is contained in:
bobwen-dev 2021-01-25 13:22:37 +08:00
parent 5ac6555b99
commit b81d1f3aa6
2 changed files with 8 additions and 3 deletions

View File

@ -26,10 +26,9 @@ DEFAULT_OPTIONS = {
print_version = ->
console.log """
#{info.name} #{info.version}, #{info.description}
Copyright (C) 2021 Bob Wen. All rights reserved.
License: AGPL-3.0
Copyright (C) 2021 Bob Wen. All rights reserved.
Homepage: #{info.homepage}
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as

View File

@ -32,6 +32,12 @@
"b-linux-arm64": "npm run b -- -t linux-arm64-14.15.4 -o dists/htpdate-linux-arm64",
"b-mac-x64": "npm run b -- -t mac-x64-14.15.3 -o dists/htpdate-mac-x64",
"b-all": "npm run b-win-x86 && npm run b-win-x64 && npm run b-linux-x64 && npm run b-linux-arm64 && npm run b-mac-x64",
"c-win-x86": "cd dists && cp htpdate-x86.exe htpdate.exe && 7z a htpdate-windows-x86.7z htpdate.exe && rm htpdate.exe",
"c-win-x64": "cd dists && cp htpdate-x64.exe htpdate.exe && 7z a htpdate-windows-x64.7z htpdate.exe && rm htpdate.exe",
"c-linux-x64": "cd dists && cp htpdate-linux-x64 htpdate && 7z a htpdate-linux-x86.7z htpdate && rm htpdate",
"c-linux-arm64": "cd dists && cp htpdate-linux-arm64 htpdate && 7z a htpdate-linux-arm64.7z htpdate && rm htpdate",
"c-mac-x64": "cd dists && cp htpdate-mac-x64 htpdate && 7z a htpdate-mac-x64.7z htpdate && rm htpdate",
"compress": "npm run c-win-x86 && npm run c-win-x64 && npm run c-linux-x64 && npm run c-linux-arm64 && npm run c-mac-x64",
"build": "npm run compile && npm run b-all && npm run clean",
"test": "npx coffee index.coffee www.pool.ntp.org"
},