From 9d569ad37b8a2510e602bad26fa0cea5d862d69d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 12 Sep 2025 22:00:57 +0800 Subject: [PATCH] :art: Support arm64 version in Microsoft Store https://github.com/siyuan-note/siyuan/issues/15836 Signed-off-by: Daniel <845765@qq.com> --- app/appx/AppxManifest-arm64.xml | 49 +++++++++++++++++++++++++++++++++ app/package.json | 1 - scripts/win-build.bat | 17 +++++++++--- 3 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 app/appx/AppxManifest-arm64.xml diff --git a/app/appx/AppxManifest-arm64.xml b/app/appx/AppxManifest-arm64.xml new file mode 100644 index 000000000..4964acbef --- /dev/null +++ b/app/appx/AppxManifest-arm64.xml @@ -0,0 +1,49 @@ + + + + + + + SiYuan + 云南链滴科技有限公司 + Refactor your thinking + assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/package.json b/app/package.json index 3767b2568..0e700f1e8 100644 --- a/app/package.json +++ b/app/package.json @@ -18,7 +18,6 @@ "build:export": "webpack --mode production --config webpack.export.js", "gen:types": "tsc -d", "start": "NODE_ENV=development electron ./electron/main.js", - "dist-appx": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --config electron-appx-builder.yml", "dist": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --config electron-builder.yml --publish=never", "dist-arm64": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --arm64 --config electron-builder-arm64.yml --publish=never", "dist-darwin": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --mac --config electron-builder-darwin.yml --publish=never", diff --git a/scripts/win-build.bat b/scripts/win-build.bat index 264b7f823..9d33c19a7 100644 --- a/scripts/win-build.bat +++ b/scripts/win-build.bat @@ -14,9 +14,9 @@ if errorlevel 1 ( cd .. echo 'Cleaning Builds' -del /S /Q /F app\build 1>nul -del /S /Q /F app\kernel 1>nul -del /S /Q /F app\kernel-arm64 1>nul +rmdir /S /Q app\build 1>nul +rmdir /S /Q app\kernel 1>nul +rmdir /S /Q app\kernel-arm64 1>nul echo 'Building Kernel' @REM the C compiler "gcc" is necessary https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ @@ -68,4 +68,13 @@ cd .. echo 'Building Appx' echo 'Building Appx should be disabled if you do not need it. Not configured correctly will lead to build failures' cd . > app\build\win-unpacked\resources\ms-store -electron-windows-store --input-directory app\build\win-unpacked --output-directory app\build\ --package-version 1.0.0.0 --package-name SiYuan --manifest app\appx\AppxManifest.xml --assets app\appx\assets\ --make-pri true +call electron-windows-store --input-directory app\build\win-unpacked --output-directory app\build\ --package-version 1.0.0.0 --package-name SiYuan --manifest app\appx\AppxManifest.xml --assets app\appx\assets\ --make-pri true + +rmdir /S /Q app\build\pre-appx 1>nul + +echo 'Building Appx arm64' +echo 'Building Appx arm64 should be disabled if you do not need it. Not configured correctly will lead to build failures' +cd . > app\build\win-arm64-unpacked\resources\ms-store +call electron-windows-store --input-directory app\build\win-arm64-unpacked --output-directory app\build\ --package-version 1.0.0.0 --package-name SiYuan-arm64 --manifest app\appx\AppxManifest-arm64.xml --assets app\appx\assets\ --make-pri true + +rmdir /S /Q app\build\pre-appx 1>nul