-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
42 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { execSync } from 'child_process'; | ||
import { PluginOption } from 'vite'; | ||
import WriteNeuConfig from './write-neu-config'; | ||
import { createPackage } from '@electron/asar'; | ||
|
||
export default function neuBuild(): PluginOption { | ||
return { | ||
name: 'neu-build', | ||
apply: 'build', | ||
enforce: 'pre', | ||
closeBundle() { | ||
async closeBundle() { | ||
console.log('Building game app'); | ||
WriteNeuConfig(); | ||
execSync('neu build'); | ||
WriteNeuConfig(true); | ||
await createPackage('dist', 'bin/resources.neu'); | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
declare var NL_TOKEN: string; | ||
declare var NL_OS: 'Linux' | 'Windows' | 'Darwin'; | ||
declare var NL_APPID: string; | ||
declare var NL_APPVERSION: string; | ||
declare var NL_PORT: number; | ||
declare var NL_MODE: 'window' | 'browser' | 'cloud' | 'chrome'; | ||
declare var NL_VERSION: string; | ||
declare var NL_CVERSION: string; | ||
declare var NL_CWD: string; | ||
declare var NL_PATH: string; | ||
declare var NL_ARGS: string[]; | ||
declare var NL_PID: number; | ||
declare var NL_RESMODE: 'bundle' | 'directory'; | ||
declare var NL_EXTENABLED: boolean; | ||
declare var NL_COMMIT: string; | ||
declare var NL_CCOMMIT: string; | ||
declare var NL_CMETHODS: any[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters