Skip to content

Commit 780c3d9

Browse files
committed
Update workflow
1 parent f0e7032 commit 780c3d9

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
python-version: '3.10'
1414
- name: Unpack existing ROMs
1515
run: |
16+
cd public
1617
curl -sL https://miracle.xania.org/miracle-roms.tar.gz | tar zx
1718
- name: Build distribution
1819
run: |
@@ -26,4 +27,4 @@ jobs:
2627
AWS_S3_BUCKET: miracle.xania.org
2728
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
2829
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
29-
SOURCE_DIR: "."
30+
SOURCE_DIR: dist

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ dist-ssr
2424
*.sw?
2525

2626
# From original Miracle
27-
roms/
28-
roms.js
27+
public/roms/
28+
src/roms.js

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
.PHONY: all z80 clean dist
2121
all: z80 src/roms.js
2222
dist: all
23+
npm run build
2324

24-
ROMS := $(shell find roms -type f | sort)
25+
ROMS := $(shell find public/roms -type f | sort)
2526

2627
src/roms.js: $(ROMS) Makefile
2728
echo 'export const RomList = [' > src/roms.js
28-
for rom in $(ROMS); do echo \"$$rom\", | sed 's/roms\///g' >> src/roms.js; done
29+
for rom in $(ROMS); do echo \"$$rom\", | sed 's|public/roms/||g' >> src/roms.js; done
2930
echo '];' >> src/roms.js
3031

3132
z80:

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<html lang="en">
2525
<head>
2626
<title>Miracle - a JavaScript Sega Master System emulator</title>
27-
<link rel="stylesheet" href="miracle.css" type="text/css">
27+
<link rel="stylesheet" href="/miracle.css" type="text/css">
2828
<script type="module" src="/src/main.js"></script>
2929
<script type="text/javascript">
3030

0 commit comments

Comments
 (0)