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
# Copy files from starter repo into a directory called "my-project"
npx degit https://github.com/nodegui/svelte-nodegui-starter my-project
# Go into the repositorycd my-project
# Install dependencies
npm install
# Build the app in development mode (unminified; watch mode on)
npm run dev
# (From another terminal) Run the built app
npm run start
In order to distribute your finished app, you can use @nodegui/packer
Step 1: (Run this command only once)
npx nodegui-packer --init MyAppName
This will produce the deploy directory containing the template. You can modify this to suite your needs. Like add icons, change the name, description and add other native features or dependencies. Make sure you commit this directory.
Step 2: (Run this command every time you want to build a new distributable)
Next you can run the pack command:
npm run build
This will produce the js bundle along with assets inside the ./dist directory
npx nodegui-packer --pack ./dist
This will build the distributable using @nodegui/packer based on your template. The output of the command is found under the build directory. You should gitignore the build directory.