Skip to content

Commit 5268b11

Browse files
committed
upgrade deno and deps
1 parent 8a9e1d6 commit 5268b11

File tree

5 files changed

+38
-6
lines changed

5 files changed

+38
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.sav
22
bin2/*
33
mgba/*
4+
tgt/*
45

56
# random crap that tends to appear over time
67
Thumbs.db

compile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4+
5+
rm -rf "$ROOT"/tgt
6+
7+
maketgt() {
8+
local target_dir="$ROOT"/tgt/gvasm-"$1"
9+
local zip_file="$ROOT"/tgt/gvasm-"$1".zip
10+
11+
mkdir -p "$target_dir"
12+
13+
deno compile \
14+
--target "$1" \
15+
--output "$target_dir"/gvasm \
16+
--allow-read \
17+
--allow-write \
18+
--allow-run \
19+
"$ROOT"/gvasm.ts
20+
21+
# Navigate to the target directory and zip everything inside it without the directory path
22+
(cd "$target_dir" && zip -r "$zip_file" *)
23+
24+
# Remove the original target directory after creating the zip
25+
rm -rf "$target_dir"
26+
}
27+
28+
maketgt x86_64-unknown-linux-gnu
29+
maketgt x86_64-pc-windows-msvc
30+
maketgt x86_64-apple-darwin
31+
maketgt aarch64-apple-darwin

src/deps.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// SPDX-License-Identifier: 0BSD
66
//
77

8-
import * as canvas from 'https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/f6fc1f5a73dc77b991ff035ef1f7627008c6b51c/mod.ts';
8+
import * as canvas from 'https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/ac6f50dcda4471d7710b22eef8017cdd634fb9a9/mod.ts';
99
import * as path from 'https://deno.land/std@0.182.0/path/mod.ts';
10-
export { parse as argParse } from 'https://deno.land/std@0.182.0/flags/mod.ts';
11-
export { exists as fileExists } from 'https://deno.land/std@0.182.0/fs/exists.ts';
10+
export { parse as argParse } from 'https://deno.land/std@0.198.0/flags/mod.ts';
11+
export { exists as fileExists } from 'https://deno.land/std@0.198.0/fs/exists.ts';
1212

1313
export interface Image {
1414
width: number;

src/ops.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export namespace ARM {
946946
'$oper$s.$cond $Rd, $Rm, $shift #$amount',
947947
'$oper$cond$s $Rd, $Rm, $shift #$amount',
948948
],
949-
run: (cpu: CPU, sym: SymReader) => {
949+
run: (cpu: CPU, sym: SymReader): void => {
950950
const oper = sym('oper');
951951
const s = !!sym('s');
952952
const cond = sym('cond');
@@ -1413,7 +1413,7 @@ export namespace ARM {
14131413
'$oper$cond $Rn, #$expression',
14141414
'$oper.$cond $Rn, #$expression',
14151415
],
1416-
run: (cpu: CPU, sym: SymReader) => {
1416+
run: (cpu: CPU, sym: SymReader): void => {
14171417
const oper = sym('oper');
14181418
const cond = sym('cond');
14191419
const Rn = sym('Rn');

src/sink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15652,7 +15652,7 @@ export function scr_dump(
1565215652
const str = prg.debugTable[i];
1565315653
const slen = str === null ? 4 : str.length;
1565415654
const slenb = '' +
15655-
String.fromCharCode((slen) & 0xFF) +
15655+
String.fromCharCode(slen & 0xFF) +
1565615656
String.fromCharCode((slen >> 8) & 0xFF) +
1565715657
String.fromCharCode((slen >> 16) & 0xFF) +
1565815658
String.fromCharCode((slen >> 24) & 0xFF);

0 commit comments

Comments
 (0)