fix: reconfigure workflow and build.js
This commit is contained in:
parent
9547c86b32
commit
4d1846f082
1
.github/workflows/tagged-release.yml
vendored
1
.github/workflows/tagged-release.yml
vendored
@ -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"
|
||||||
|
1
build.js
1
build.js
@ -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', '.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user