You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was previously discussed inside the Neutralinojs Discord, but to sum it up: running npm run build does not export the actual app. Instead, it exports a Neutralinojs template app.
Steps to recreate
Run neu create app_name --template OrigamingWasTaken/neutralino-svelte
cd into the project and run npm install
Run npm run dev to verify custom app
Run npm run build
Screenshots
What is expected (from npm run dev)
What is generated from npm run build
The text was updated successfully, but these errors were encountered:
After delving more into the issue, I noticed this:
Running the original build command from Neutralinojs a.k.a. neu build generates correct executables + a resources.neu file (as stated in the docs), however there is a problem with CSS for light and dark. This is how it looks like in light mode.
This is also after removing light-dark related colors in src/app.css.
In scripts/build/ts/index.ts, from what I understand, it's removing dist/ and .tmpbuild/ folder, then builds, then removes it again, then finally exports executables to dist/. The problem is when it tries to build, it doesn't generate any resources.neu at all, which makes the app default to the base app.
For example, in scripts/build/ts/win-bundle.ts, which is called in index.ts:
constneuResources=path.resolve('dist',neuConfig.cli.binaryName,'resources.neu');if(!fs.existsSync(neuResources)){l.fatal("No 'resources.neu' file was not found in the ./dist directory");return;}
this error never triggers despite the fact that no resources.neu is generated.
then again, I may be completely wrong; I'm still trying to understand this template as a whole.
Description
This was previously discussed inside the Neutralinojs Discord, but to sum it up: running
npm run build
does not export the actual app. Instead, it exports a Neutralinojs template app.Steps to recreate
neu create app_name --template OrigamingWasTaken/neutralino-svelte
cd
into the project and runnpm install
npm run dev
to verify custom appnpm run build
Screenshots
What is expected (from
npm run dev
)What is generated from
npm run build
The text was updated successfully, but these errors were encountered: