fix: reconfigure workflow and build.js

This commit is contained in:
TopchetoEU 2023-10-04 08:57:04 +03:00
parent 9547c86b32
commit 4d1846f082
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 - name: Clone repository
uses: GuillaumeFalourd/clone-github-repo-action@main uses: GuillaumeFalourd/clone-github-repo-action@main
with: with:
branch: 'master' # fuck this political bullshitshit, took me an hour to fix this
owner: 'TopchetoEU' owner: 'TopchetoEU'
repository: 'java-jscript' repository: 'java-jscript'
- name: "Build" - name: "Build"

View File

@ -69,7 +69,6 @@ async function compileJava() {
try { try {
try { await fs.rm('dst', { recursive: true }); } catch {} try { await fs.rm('dst', { recursive: true }); } catch {}
await copy('src', 'dst/classes', v => !v.endsWith('.java')); 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 compileJava();
await run('jar', '-c', '-f', 'dst/jscript.jar', '-e', 'me.topchetoeu.jscript.Main', '-C', 'dst/classes', '.'); await run('jar', '-c', '-f', 'dst/jscript.jar', '-e', 'me.topchetoeu.jscript.Main', '-C', 'dst/classes', '.');
} }