From cb3f9a42d9b623bacaae750739474b5175569505 Mon Sep 17 00:00:00 2001 From: Aleksandr 'Aux' Ivanov Date: Fri, 1 May 2026 10:26:19 +0100 Subject: [PATCH 1/2] Added AppX build target --- .github/workflows/release.yml | 5 ++- .../src/app/options/maker-appx.options.json | 34 +++++++++++++++++++ package.json | 3 ++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 apps/desktop/src/app/options/maker-appx.options.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0337c64..12620a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,13 @@ jobs: cache: 'npm' - run: npm ci --prefer-offline --no-audit --ignore-scripts - run: npm run make:prod + - run: npm run make:prod-appx # - uses: actions/upload-artifact@v4 # with: # name: 'Light Matter Installer' # path: 'dist/executables/Light Matter Setup*.exe' - uses: softprops/action-gh-release@v2 with: - files: 'dist/executables/Light Matter Setup*.exe' + files: + - 'dist/executables/Light Matter Setup*.exe' + - 'dist/executables/Light Matter *.appx' diff --git a/apps/desktop/src/app/options/maker-appx.options.json b/apps/desktop/src/app/options/maker-appx.options.json new file mode 100644 index 0000000..9db5eb3 --- /dev/null +++ b/apps/desktop/src/app/options/maker-appx.options.json @@ -0,0 +1,34 @@ +{ + "$schema": "../../../../../node_modules/nx-electron/src/validation/maker.schema.json", + "productName": "Light Matter", + "fileAssociations": [ + { + "ext": [ + "jpg", + "jpeg", + "jxl", + "png", + "gif", + "svg", + "webp", + "avif", + "bmp" + ], + "role": "Viewer" + } + ], + "appx": { + "applicationId": "hexmode.org.LightMatter", + "identityName": "62205hexmode.org.LightMatter", + "displayName": "Light Matter", + "publisher": "CN=A139D0AB-B22F-434F-A983-4845D29D550E", + "publisherDisplayName": "hexmode.org" + }, + "win": { + "icon": "./apps/desktop/src/assets/icon.ico", + "target": "appx" + }, + "electronLanguages": [ + "en-GB" + ] +} diff --git a/package.json b/package.json index 1a0c876..68edff2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,8 @@ { "name": "@light-matter/source", + "author": "hexmode.org", "version": "0.0.4", + "description": "A simple image viewer with HDR photo support for Windows", "license": "MIT", "scripts": { "format": "dprint fmt", @@ -12,6 +14,7 @@ "test:ci": "nx run-many --all --target=test --configuration=ci --parallel=3 --runInBand --ci --code-coverage --coverageReporters=lcov", "build:ci": "nx run-many --all --target=build", "make:prod": "nx run web:build:production && nx run desktop:build:production && nx run desktop:make", + "make:prod-appx": "nx run web:build:production && nx run desktop:build:production && nx run desktop:make --makerOptionsPath=apps/desktop/src/app/options/maker-appx.options.json", "start:with-args": "cd dist/executables/win-unpacked && \"Light Matter.exe\" \"C:\\Users\\Aleks\\Desktop\\hdr photos\\IMGP8056.jpg\"", "postinstall": "electron-builder install-app-deps", "nxe:build:frontend": "nx build web", From b0736028e8f161c48ba3d26c2588d711a5c908d7 Mon Sep 17 00:00:00 2001 From: Aleksandr 'Aux' Ivanov Date: Fri, 1 May 2026 10:28:36 +0100 Subject: [PATCH 2/2] Release config fix --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12620a6..18f79c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,6 @@ jobs: # path: 'dist/executables/Light Matter Setup*.exe' - uses: softprops/action-gh-release@v2 with: - files: - - 'dist/executables/Light Matter Setup*.exe' - - 'dist/executables/Light Matter *.appx' + files: | + 'dist/executables/Light Matter Setup*.exe' + 'dist/executables/Light Matter *.appx'