diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0337c64..18f79c2 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",