Skip to content

Commit 62c363e

Browse files
committed
Mapepire start
Signed-off-by: worksofliam <[email protected]>
1 parent 661328d commit 62c363e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/connection/SCVersion.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

2-
export const SERVER_VERSION_TAG = `v1.4.9`;
3-
export const SERVER_VERSION_FILE = `codeforiserver-1.4.9.jar`;
2+
export const VERSION = `2.1.4`;
3+
export const SERVER_VERSION_TAG = `v${VERSION}`;
4+
export const SERVER_VERSION_FILE = `mapepire-server-${VERSION}.jar`;

src/connection/serverComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ServerComponent {
4747
const path = this.getComponentPath();
4848

4949
if (path) {
50-
return `/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/bin/java -Dos400.stdio.convert=N -jar ${path}`
50+
return `/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/bin/java -Dos400.stdio.convert=N -jar ${path} --single`
5151
}
5252
}
5353

src/dsc.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import path from "path";
33
import fetch from "node-fetch";
44
import { Octokit } from "octokit";
55
import { writeFile } from "fs/promises";
6-
import { SERVER_VERSION_TAG } from "./connection/SCVersion";
6+
import { SERVER_VERSION_FILE, SERVER_VERSION_TAG } from "./connection/SCVersion";
77

88
async function work() {
99
const octokit = new Octokit();
1010

11-
const owner = `ThePrez`;
12-
const repo = `CodeForIBMiServer`;
11+
const owner = `Mapepire-IBMi`;
12+
const repo = `mapepire-server`;
1313

1414
try {
1515
const result = await octokit.request(`GET /repos/{owner}/{repo}/releases/tags/${SERVER_VERSION_TAG}`, {
@@ -26,9 +26,8 @@ async function work() {
2626
console.log(`Asset found: ${newAsset.name}`);
2727

2828
const url = newAsset.browser_download_url;
29-
const basename = newAsset.name;
3029

31-
const dist = path.join(`.`, `dist`, basename);
30+
const dist = path.join(`.`, `dist`, SERVER_VERSION_FILE);
3231

3332
await downloadFile(url, dist);
3433

0 commit comments

Comments
 (0)