Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,27 @@ A custom web frontend for the Emscripten port of [isle-portable](https://github.

3. Obtain the game files (`isle.js` and `isle.wasm`) by building the Emscripten version of [isle-portable](https://github.com/isledecomp/isle-portable), then copy them to the project root.

4. Start the development server:
4. Set up the LEGO Island game assets:
```bash
npm run prepare:assets
```
This will prompt you for the path to your LEGO Island installation or mounted ISO and create the necessary symlinks. You can also provide the path directly:
```bash
npm run prepare:assets -- -p /path/to/your/LEGO
```

5. Start the development server:
```bash
npm run dev
```

5. Open the URL shown in the terminal (usually `http://localhost:5173`).
6. Open the URL shown in the terminal (usually `http://localhost:5173`).

## Scripts

| Command | Description |
|---------|-------------|
| `npm run prepare:assets` | Set up LEGO Island game assets via symlinks |
| `npm run dev` | Start development server with hot reload |
| `npm run build` | Build for production (outputs to `dist/`) |
| `npm run preview` | Preview the production build locally |
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "vite build && cp isle.js isle.wasm dist/ && node scripts/workbox-inject.js",
"build:ci": "vite build && node scripts/workbox-inject.js",
"check": "svelte-check --fail-on-warnings",
"preview": "vite preview"
"preview": "vite preview",
"prepare:assets": "node scripts/prepare.js"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^4.0.0",
Expand Down
Loading