feat: Implemented launching and downloading of roms
This is just an initial implementation lots of kings to iron out
This commit is contained in:
parent
ef08fa6114
commit
f15bf9a1e0
117 changed files with 37776 additions and 1073 deletions
|
|
@ -6,11 +6,15 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons-ng';
|
|||
import path from "node:path";
|
||||
import staticAssetsPlugin from 'vite-static-assets-plugin';
|
||||
import { host } from "./src/bun/utils";
|
||||
import os from 'node:os';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
|
||||
export default defineConfig(() =>
|
||||
{
|
||||
const production = process.env.NODE_ENV === 'production';
|
||||
console.log(`Building Vite in ${process.env.NODE_ENV}`);
|
||||
process.env.VITE_PLATFORM = os.platform();
|
||||
process.env.VITE_ARCH = os.arch();
|
||||
|
||||
return {
|
||||
base: './',
|
||||
|
|
@ -36,7 +40,8 @@ export default defineConfig(() =>
|
|||
createSvgIconsPlugin({
|
||||
// Specify the icon folder to be cached
|
||||
iconDirs: [path.resolve(process.cwd(), 'src/mainview/assets/icons')],
|
||||
})
|
||||
}),
|
||||
tsconfigPaths()
|
||||
],
|
||||
root: "src/mainview",
|
||||
build: {
|
||||
|
|
@ -72,6 +77,11 @@ export default defineConfig(() =>
|
|||
allowedHosts: true,
|
||||
host,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@emulators": path.resolve(__dirname, `vendors/es-de/emulators.${os.platform()}.${os.arch()}.json`)
|
||||
}
|
||||
},
|
||||
define: {
|
||||
__HOST__: JSON.stringify(host)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue