diff --git a/SDServer Setup 1.0.0.exe b/SDServer Setup 1.0.0.exe new file mode 100644 index 0000000..6ac5e57 Binary files /dev/null and b/SDServer Setup 1.0.0.exe differ diff --git a/SDServer Setup 1.0.0.exe.blockmap b/SDServer Setup 1.0.0.exe.blockmap new file mode 100644 index 0000000..236e62c Binary files /dev/null and b/SDServer Setup 1.0.0.exe.blockmap differ diff --git a/builder-debug.yml b/builder-debug.yml new file mode 100644 index 0000000..a785af6 --- /dev/null +++ b/builder-debug.yml @@ -0,0 +1,225 @@ +x64: + firstOrDefaultFilePatterns: + - '!**/node_modules' + - '!build{,/**/*}' + - '!release{,/**/*}' + - dist/**/* + - node_modules/**/* + - package.json + - .env.prod + - '!**/*.{iml,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,suo,xproj,cc,d.ts,mk,a,o,forge-meta,pdb}' + - '!**/._*' + - '!**/electron-builder.{yaml,yml,json,json5,toml,ts}' + - '!**/{.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,.DS_Store,thumbs.db,.gitignore,.gitkeep,.gitattributes,.npmignore,.idea,.vs,.flowconfig,.jshintrc,.eslintrc,.circleci,.yarn-integrity,.yarn-metadata.json,yarn-error.log,yarn.lock,package-lock.json,npm-debug.log,appveyor.yml,.travis.yml,circle.yml,.nyc_output,.husky,.github,electron-builder.env}' + - '!.yarn{,/**/*}' + - '!.editorconfig' + - '!.yarnrc.yml' + nodeModuleFilePatterns: + - '**/*' + - dist/**/* + - node_modules/**/* + - package.json + - .env.prod +nsis: + script: |- + !include "E:\Project\Test\Test_NodeJS\SDServer\node_modules\app-builder-lib\templates\nsis\include\StdUtils.nsh" + !addincludedir "E:\Project\Test\Test_NodeJS\SDServer\node_modules\app-builder-lib\templates\nsis\include" + !macro _isUpdated _a _b _t _f + ${StdUtils.TestParameter} $R9 "updated" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isUpdated `"" isUpdated ""` + + !macro _isForceRun _a _b _t _f + ${StdUtils.TestParameter} $R9 "force-run" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isForceRun `"" isForceRun ""` + + !macro _isKeepShortcuts _a _b _t _f + ${StdUtils.TestParameter} $R9 "keep-shortcuts" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isKeepShortcuts `"" isKeepShortcuts ""` + + !macro _isNoDesktopShortcut _a _b _t _f + ${StdUtils.TestParameter} $R9 "no-desktop-shortcut" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isNoDesktopShortcut `"" isNoDesktopShortcut ""` + + !macro _isDeleteAppData _a _b _t _f + ${StdUtils.TestParameter} $R9 "delete-app-data" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isDeleteAppData `"" isDeleteAppData ""` + + !macro _isForAllUsers _a _b _t _f + ${StdUtils.TestParameter} $R9 "allusers" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isForAllUsers `"" isForAllUsers ""` + + !macro _isForCurrentUser _a _b _t _f + ${StdUtils.TestParameter} $R9 "currentuser" + StrCmp "$R9" "true" `${_t}` `${_f}` + !macroend + !define isForCurrentUser `"" isForCurrentUser ""` + + !macro addLangs + !insertmacro MUI_LANGUAGE "English" + !insertmacro MUI_LANGUAGE "German" + !insertmacro MUI_LANGUAGE "French" + !insertmacro MUI_LANGUAGE "SpanishInternational" + !insertmacro MUI_LANGUAGE "SimpChinese" + !insertmacro MUI_LANGUAGE "TradChinese" + !insertmacro MUI_LANGUAGE "Japanese" + !insertmacro MUI_LANGUAGE "Korean" + !insertmacro MUI_LANGUAGE "Italian" + !insertmacro MUI_LANGUAGE "Dutch" + !insertmacro MUI_LANGUAGE "Danish" + !insertmacro MUI_LANGUAGE "Swedish" + !insertmacro MUI_LANGUAGE "Norwegian" + !insertmacro MUI_LANGUAGE "Finnish" + !insertmacro MUI_LANGUAGE "Russian" + !insertmacro MUI_LANGUAGE "Portuguese" + !insertmacro MUI_LANGUAGE "PortugueseBR" + !insertmacro MUI_LANGUAGE "Polish" + !insertmacro MUI_LANGUAGE "Ukrainian" + !insertmacro MUI_LANGUAGE "Czech" + !insertmacro MUI_LANGUAGE "Slovak" + !insertmacro MUI_LANGUAGE "Hungarian" + !insertmacro MUI_LANGUAGE "Arabic" + !insertmacro MUI_LANGUAGE "Turkish" + !insertmacro MUI_LANGUAGE "Thai" + !insertmacro MUI_LANGUAGE "Vietnamese" + !macroend + + !include "C:\Users\user\AppData\Local\Temp\t-YusrWB\0-messages.nsh" + !addplugindir /x86-unicode "C:\Users\user\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.4.1\plugins\x86-unicode" + + Var newStartMenuLink + Var oldStartMenuLink + Var newDesktopLink + Var oldDesktopLink + Var oldShortcutName + Var oldMenuDirectory + + !include "common.nsh" + !include "MUI2.nsh" + !include "multiUser.nsh" + !include "allowOnlyOneInstallerInstance.nsh" + + !ifdef INSTALL_MODE_PER_ALL_USERS + !ifdef BUILD_UNINSTALLER + RequestExecutionLevel user + !else + RequestExecutionLevel admin + !endif + !else + RequestExecutionLevel user + !endif + + !ifdef BUILD_UNINSTALLER + SilentInstall silent + !else + Var appExe + Var launchLink + !endif + + !ifdef ONE_CLICK + !include "oneClick.nsh" + !else + !include "assistedInstaller.nsh" + !endif + + !insertmacro addLangs + + !ifmacrodef customHeader + !insertmacro customHeader + !endif + + Function .onInit + Call setInstallSectionSpaceRequired + + SetOutPath $INSTDIR + ${LogSet} on + + !ifmacrodef preInit + !insertmacro preInit + !endif + + !ifdef DISPLAY_LANG_SELECTOR + !insertmacro MUI_LANGDLL_DISPLAY + !endif + + !ifdef BUILD_UNINSTALLER + WriteUninstaller "${UNINSTALLER_OUT_FILE}" + !insertmacro quitSuccess + !else + !insertmacro check64BitAndSetRegView + + !ifdef ONE_CLICK + !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE + !else + ${IfNot} ${UAC_IsInnerInstance} + !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE + ${EndIf} + !endif + + !insertmacro initMultiUser + + !ifmacrodef customInit + !insertmacro customInit + !endif + + !ifmacrodef addLicenseFiles + InitPluginsDir + !insertmacro addLicenseFiles + !endif + !endif + FunctionEnd + + !ifndef BUILD_UNINSTALLER + !include "installUtil.nsh" + !endif + + Section "install" INSTALL_SECTION_ID + !ifndef BUILD_UNINSTALLER + # If we're running a silent upgrade of a per-machine installation, elevate so extracting the new app will succeed. + # For a non-silent install, the elevation will be triggered when the install mode is selected in the UI, + # but that won't be executed when silent. + !ifndef INSTALL_MODE_PER_ALL_USERS + !ifndef ONE_CLICK + ${if} $hasPerMachineInstallation == "1" # set in onInit by initMultiUser + ${andIf} ${Silent} + ${ifNot} ${UAC_IsAdmin} + ShowWindow $HWNDPARENT ${SW_HIDE} + !insertmacro UAC_RunElevated + ${Switch} $0 + ${Case} 0 + ${Break} + ${Case} 1223 ;user aborted + ${Break} + ${Default} + MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Unable to elevate, error $0" + ${Break} + ${EndSwitch} + Quit + ${else} + !insertmacro setInstallModePerAllUsers + ${endIf} + ${endIf} + !endif + !endif + !include "installSection.nsh" + !endif + SectionEnd + + Function setInstallSectionSpaceRequired + !insertmacro setSpaceRequired ${INSTALL_SECTION_ID} + FunctionEnd + + !ifdef BUILD_UNINSTALLER + !include "uninstaller.nsh" + !endif diff --git a/builder-effective-config.yaml b/builder-effective-config.yaml new file mode 100644 index 0000000..989b388 --- /dev/null +++ b/builder-effective-config.yaml @@ -0,0 +1,15 @@ +directories: + output: release + buildResources: build +appId: SDServer +productName: SDServer +files: + - filter: + - dist/**/* + - node_modules/**/* + - package.json + - .env.prod +extraFiles: + - from: shared + to: resources/shared +electronVersion: 32.0.1 diff --git a/SDServer.exe b/win-unpacked/SDServer.exe similarity index 100% rename from SDServer.exe rename to win-unpacked/SDServer.exe diff --git a/ffmpeg.dll b/win-unpacked/ffmpeg.dll similarity index 100% rename from ffmpeg.dll rename to win-unpacked/ffmpeg.dll diff --git a/icudtl.dat b/win-unpacked/icudtl.dat similarity index 100% rename from icudtl.dat rename to win-unpacked/icudtl.dat diff --git a/libEGL.dll b/win-unpacked/libEGL.dll similarity index 100% rename from libEGL.dll rename to win-unpacked/libEGL.dll diff --git a/libGLESv2.dll b/win-unpacked/libGLESv2.dll similarity index 100% rename from libGLESv2.dll rename to win-unpacked/libGLESv2.dll diff --git a/locales/af.pak b/win-unpacked/locales/af.pak similarity index 100% rename from locales/af.pak rename to win-unpacked/locales/af.pak diff --git a/locales/am.pak b/win-unpacked/locales/am.pak similarity index 100% rename from locales/am.pak rename to win-unpacked/locales/am.pak diff --git a/locales/ar.pak b/win-unpacked/locales/ar.pak similarity index 100% rename from locales/ar.pak rename to win-unpacked/locales/ar.pak diff --git a/locales/bg.pak b/win-unpacked/locales/bg.pak similarity index 100% rename from locales/bg.pak rename to win-unpacked/locales/bg.pak diff --git a/locales/bn.pak b/win-unpacked/locales/bn.pak similarity index 100% rename from locales/bn.pak rename to win-unpacked/locales/bn.pak diff --git a/locales/ca.pak b/win-unpacked/locales/ca.pak similarity index 100% rename from locales/ca.pak rename to win-unpacked/locales/ca.pak diff --git a/locales/cs.pak b/win-unpacked/locales/cs.pak similarity index 100% rename from locales/cs.pak rename to win-unpacked/locales/cs.pak diff --git a/locales/da.pak b/win-unpacked/locales/da.pak similarity index 100% rename from locales/da.pak rename to win-unpacked/locales/da.pak diff --git a/locales/de.pak b/win-unpacked/locales/de.pak similarity index 100% rename from locales/de.pak rename to win-unpacked/locales/de.pak diff --git a/locales/el.pak b/win-unpacked/locales/el.pak similarity index 100% rename from locales/el.pak rename to win-unpacked/locales/el.pak diff --git a/locales/en-GB.pak b/win-unpacked/locales/en-GB.pak similarity index 100% rename from locales/en-GB.pak rename to win-unpacked/locales/en-GB.pak diff --git a/locales/en-US.pak b/win-unpacked/locales/en-US.pak similarity index 100% rename from locales/en-US.pak rename to win-unpacked/locales/en-US.pak diff --git a/locales/es-419.pak b/win-unpacked/locales/es-419.pak similarity index 100% rename from locales/es-419.pak rename to win-unpacked/locales/es-419.pak diff --git a/locales/es.pak b/win-unpacked/locales/es.pak similarity index 100% rename from locales/es.pak rename to win-unpacked/locales/es.pak diff --git a/locales/et.pak b/win-unpacked/locales/et.pak similarity index 100% rename from locales/et.pak rename to win-unpacked/locales/et.pak diff --git a/locales/fa.pak b/win-unpacked/locales/fa.pak similarity index 100% rename from locales/fa.pak rename to win-unpacked/locales/fa.pak diff --git a/locales/fi.pak b/win-unpacked/locales/fi.pak similarity index 100% rename from locales/fi.pak rename to win-unpacked/locales/fi.pak diff --git a/locales/fil.pak b/win-unpacked/locales/fil.pak similarity index 100% rename from locales/fil.pak rename to win-unpacked/locales/fil.pak diff --git a/locales/fr.pak b/win-unpacked/locales/fr.pak similarity index 100% rename from locales/fr.pak rename to win-unpacked/locales/fr.pak diff --git a/locales/gu.pak b/win-unpacked/locales/gu.pak similarity index 100% rename from locales/gu.pak rename to win-unpacked/locales/gu.pak diff --git a/locales/he.pak b/win-unpacked/locales/he.pak similarity index 100% rename from locales/he.pak rename to win-unpacked/locales/he.pak diff --git a/locales/hi.pak b/win-unpacked/locales/hi.pak similarity index 100% rename from locales/hi.pak rename to win-unpacked/locales/hi.pak diff --git a/locales/hr.pak b/win-unpacked/locales/hr.pak similarity index 100% rename from locales/hr.pak rename to win-unpacked/locales/hr.pak diff --git a/locales/hu.pak b/win-unpacked/locales/hu.pak similarity index 100% rename from locales/hu.pak rename to win-unpacked/locales/hu.pak diff --git a/locales/id.pak b/win-unpacked/locales/id.pak similarity index 100% rename from locales/id.pak rename to win-unpacked/locales/id.pak diff --git a/locales/it.pak b/win-unpacked/locales/it.pak similarity index 100% rename from locales/it.pak rename to win-unpacked/locales/it.pak diff --git a/locales/ja.pak b/win-unpacked/locales/ja.pak similarity index 100% rename from locales/ja.pak rename to win-unpacked/locales/ja.pak diff --git a/locales/kn.pak b/win-unpacked/locales/kn.pak similarity index 100% rename from locales/kn.pak rename to win-unpacked/locales/kn.pak diff --git a/locales/ko.pak b/win-unpacked/locales/ko.pak similarity index 100% rename from locales/ko.pak rename to win-unpacked/locales/ko.pak diff --git a/locales/lt.pak b/win-unpacked/locales/lt.pak similarity index 100% rename from locales/lt.pak rename to win-unpacked/locales/lt.pak diff --git a/locales/lv.pak b/win-unpacked/locales/lv.pak similarity index 100% rename from locales/lv.pak rename to win-unpacked/locales/lv.pak diff --git a/locales/ml.pak b/win-unpacked/locales/ml.pak similarity index 100% rename from locales/ml.pak rename to win-unpacked/locales/ml.pak diff --git a/locales/mr.pak b/win-unpacked/locales/mr.pak similarity index 100% rename from locales/mr.pak rename to win-unpacked/locales/mr.pak diff --git a/locales/ms.pak b/win-unpacked/locales/ms.pak similarity index 100% rename from locales/ms.pak rename to win-unpacked/locales/ms.pak diff --git a/locales/nb.pak b/win-unpacked/locales/nb.pak similarity index 100% rename from locales/nb.pak rename to win-unpacked/locales/nb.pak diff --git a/locales/nl.pak b/win-unpacked/locales/nl.pak similarity index 100% rename from locales/nl.pak rename to win-unpacked/locales/nl.pak diff --git a/locales/pl.pak b/win-unpacked/locales/pl.pak similarity index 100% rename from locales/pl.pak rename to win-unpacked/locales/pl.pak diff --git a/locales/pt-BR.pak b/win-unpacked/locales/pt-BR.pak similarity index 100% rename from locales/pt-BR.pak rename to win-unpacked/locales/pt-BR.pak diff --git a/locales/pt-PT.pak b/win-unpacked/locales/pt-PT.pak similarity index 100% rename from locales/pt-PT.pak rename to win-unpacked/locales/pt-PT.pak diff --git a/locales/ro.pak b/win-unpacked/locales/ro.pak similarity index 100% rename from locales/ro.pak rename to win-unpacked/locales/ro.pak diff --git a/locales/ru.pak b/win-unpacked/locales/ru.pak similarity index 100% rename from locales/ru.pak rename to win-unpacked/locales/ru.pak diff --git a/locales/sk.pak b/win-unpacked/locales/sk.pak similarity index 100% rename from locales/sk.pak rename to win-unpacked/locales/sk.pak diff --git a/locales/sl.pak b/win-unpacked/locales/sl.pak similarity index 100% rename from locales/sl.pak rename to win-unpacked/locales/sl.pak diff --git a/locales/sr.pak b/win-unpacked/locales/sr.pak similarity index 100% rename from locales/sr.pak rename to win-unpacked/locales/sr.pak diff --git a/locales/sv.pak b/win-unpacked/locales/sv.pak similarity index 100% rename from locales/sv.pak rename to win-unpacked/locales/sv.pak diff --git a/locales/sw.pak b/win-unpacked/locales/sw.pak similarity index 100% rename from locales/sw.pak rename to win-unpacked/locales/sw.pak diff --git a/locales/ta.pak b/win-unpacked/locales/ta.pak similarity index 100% rename from locales/ta.pak rename to win-unpacked/locales/ta.pak diff --git a/locales/te.pak b/win-unpacked/locales/te.pak similarity index 100% rename from locales/te.pak rename to win-unpacked/locales/te.pak diff --git a/locales/th.pak b/win-unpacked/locales/th.pak similarity index 100% rename from locales/th.pak rename to win-unpacked/locales/th.pak diff --git a/locales/tr.pak b/win-unpacked/locales/tr.pak similarity index 100% rename from locales/tr.pak rename to win-unpacked/locales/tr.pak diff --git a/locales/uk.pak b/win-unpacked/locales/uk.pak similarity index 100% rename from locales/uk.pak rename to win-unpacked/locales/uk.pak diff --git a/locales/ur.pak b/win-unpacked/locales/ur.pak similarity index 100% rename from locales/ur.pak rename to win-unpacked/locales/ur.pak diff --git a/locales/vi.pak b/win-unpacked/locales/vi.pak similarity index 100% rename from locales/vi.pak rename to win-unpacked/locales/vi.pak diff --git a/locales/zh-CN.pak b/win-unpacked/locales/zh-CN.pak similarity index 100% rename from locales/zh-CN.pak rename to win-unpacked/locales/zh-CN.pak diff --git a/locales/zh-TW.pak b/win-unpacked/locales/zh-TW.pak similarity index 100% rename from locales/zh-TW.pak rename to win-unpacked/locales/zh-TW.pak diff --git a/resources.pak b/win-unpacked/resources.pak similarity index 100% rename from resources.pak rename to win-unpacked/resources.pak diff --git a/resources/app.asar b/win-unpacked/resources/app.asar similarity index 100% rename from resources/app.asar rename to win-unpacked/resources/app.asar diff --git a/resources/elevate.exe b/win-unpacked/resources/elevate.exe similarity index 100% rename from resources/elevate.exe rename to win-unpacked/resources/elevate.exe diff --git a/resources/shared/jsons/slot1.json b/win-unpacked/resources/shared/jsons/slot1.json similarity index 100% rename from resources/shared/jsons/slot1.json rename to win-unpacked/resources/shared/jsons/slot1.json diff --git a/v8_context_snapshot.bin b/win-unpacked/v8_context_snapshot.bin similarity index 100% rename from v8_context_snapshot.bin rename to win-unpacked/v8_context_snapshot.bin