Skip to content

Commit

Permalink
feat: log java version
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Nov 20, 2024
1 parent cd7aaed commit 2869463
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/client/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ if (!fs.existsSync(temp)) {
function getUniqKey() {
return new Date().getTime() + '_' + Math.random().toString(36).substring(2, 6);
}

console.log(
execSync('java -version')?.toString()
)
function walkSync(currentDirPath) {
const files = [];
fs.readdirSync(currentDirPath, { withFileTypes: true }).forEach(function (dirent) {
Expand Down Expand Up @@ -74,7 +76,9 @@ async function signAllFiles(srcPath) {
console.log('overwrite zip: ', file)
fs.rmSync(file);
if (file.endsWith('.jar')) {
execSync(`jar -cMf0 ${file} -C ${tempDir} .`)
execSync(`jar -cMf0 ${file} -C ${tempDir} .`, {
env: process.env
})
} else {

const zip2 = new AdmZip();
Expand Down

0 comments on commit 2869463

Please sign in to comment.