From 8fefe488d1bf87b468f1cbf817196a3e27fead38 Mon Sep 17 00:00:00 2001 From: Quentin Goinaud Date: Mon, 29 Jul 2024 09:28:45 +0200 Subject: [PATCH] add disabled nodes support prevent error throwing on c3 export fix hardcoded zip folder for electron --- forge.config.ts | 5 +-- index.html | 5 +-- package.json | 8 ++--- src/constants.ts | 30 ++++++++++++++++++ src/main/utils.ts | 7 +++-- src/renderer/components/AddNodeButton.vue | 30 ++++++++++++------ .../components/nodes/EditorNodeAction.vue | 2 +- .../components/nodes/EditorNodeCondition.vue | 3 +- .../components/nodes/EditorNodeEvent.vue | 2 +- .../components/nodes/EditorNodeLoop.vue | 3 +- src/renderer/components/nodes/ParamEditor.vue | 6 ++-- src/renderer/store/app.ts | 2 +- src/renderer/store/editor.ts | 16 +++++----- .../libs/plugin-construct/assets/script.ts | 30 ++++++++++++------ .../libs/plugin-construct/export-c3p.ts | 4 +-- .../libs/plugin-construct/export-project.ts | 4 +-- src/shared/libs/plugin-core/cyn.ts | 8 ++++- src/shared/libs/plugin-electron/index.ts | 3 ++ src/shared/libs/plugin-electron/make.ts | 8 +++-- src/shared/libs/plugin-electron/package.ts | 17 +++++++--- src/shared/libs/plugin-itch/export.ts | 2 +- .../libs/plugin-steam/upload-to-steam.ts | 2 +- tests/e2e/tests/basic.spec.ts | 31 +++++-------------- 23 files changed, 145 insertions(+), 83 deletions(-) create mode 100644 src/constants.ts diff --git a/forge.config.ts b/forge.config.ts index 755ab55..442dd0d 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -4,6 +4,7 @@ import { MakerZIP } from '@electron-forge/maker-zip' import { VitePlugin } from '@electron-forge/plugin-vite' import { FusesPlugin } from '@electron-forge/plugin-fuses' import { FuseV1Options, FuseVersion } from '@electron/fuses' +import { name } from './src/constants' const config: ForgeConfig = { packagerConfig: { @@ -12,12 +13,12 @@ const config: ForgeConfig = { }, // asar: false, extraResource: ['.vite/build/assets'], - name: "Cyn" + name }, rebuildConfig: {}, makers: [ new MakerSquirrel({ - name: "Cyn" + name }), new MakerZIP({}, ['darwin', 'linux', 'win32']), ], diff --git a/index.html b/index.html index 86eea4e..065d3e2 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,8 @@ /> - + +