fix: reconfigure workflow and build.js

This commit is contained in:
TopchetoEU 2023-10-04 08:57:04 +03:00
parent 9547c86b32
commit 27d2377f8b
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4
2 changed files with 1 additions and 1 deletions

View File

@ -14,6 +14,7 @@ jobs:
- name: Clone repository
uses: GuillaumeFalourd/clone-github-repo-action@main
with:
branch: 'master' # fuck this political bullshitshit, took me an hour to fix this
owner: 'TopchetoEU'
repository: 'java-jscript'
- name: "Build"

View File

@ -69,7 +69,6 @@ async function compileJava() {
try {
try { await fs.rm('dst', { recursive: true }); } catch {}
await copy('src', 'dst/classes', v => !v.endsWith('.java'));
await run('tsc', '-p', 'lib/tsconfig.json', '--outFile', 'dst/classes/me/topchetoeu/jscript/js/core.js'),
await compileJava();
await run('jar', '-c', '-f', 'dst/jscript.jar', '-e', 'me.topchetoeu.jscript.Main', '-C', 'dst/classes', '.');
}