Skip to content

Commit

Permalink
feat: add java home env
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Nov 20, 2024
1 parent 211c8d2 commit f4ae754
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/client/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ async function signAllFiles(srcPath) {
fs.rmSync(file);
if (file.endsWith('.jar')) {
execSync(`jar -cMf0 ${file} -C ${tempDir} .`, {
env: process.env
env: {
...process.env,
JAVA_HOME: "`/usr/libexec/java_home -v 1.8`"
}
})
} else {

Expand Down

0 comments on commit f4ae754

Please sign in to comment.