From 4b914080087a936decdec9818df25b0e720b39e1 Mon Sep 17 00:00:00 2001 From: Joe Duncko Date: Sat, 5 Jun 2021 18:20:02 -0400 Subject: [PATCH] feat(ui): get windows builds working - file associations aren't working yet (#11) * Windows builds are working! * fix oopsie * Fix oopie 2 * Add windows fileAssociations * Try again * Update README.md * Update README.md --- README.md | 5 +++-- package.json | 15 +++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 313e1f3..a71da83 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ It uses [PepperFlashPlayer](https://wiki.debian.org/PepperFlashPlayer), the Flas - Download the correct version of the app for your platform from [the Releases page](https://github.com/JoeDuncko/electron-swf-player/releases). -Currently only tested on Intel Macs. Builds for other platforms coming soon. +Currently only tested on Intel Macs and Windows 10. Builds for other platforms coming soon. ## Developing @@ -32,7 +32,8 @@ Currently all platforms use the macOS icon. ### Windows -TBD +- Be on a PC +- `npm run make` ### Linux diff --git a/package.json b/package.json index 7674bb3..92a31b6 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,8 @@ }, "scripts": { "start": "electron-forge start", - "generate-icons": "electron-icon-builder --input=./icons-src/electron-swf-player-macos-icon.png --output=./", - "make": "npm run generate-icons; electron-forge make", - "make-win": "npm run generate-icons; electron-forge make --arch ia32,x64", + "generate-icons": "electron-icon-builder --flatten --input=./icons-src/electron-swf-player-macos-icon.png --output=./", + "make": "npm run generate-icons && electron-forge make", "lint": "eslint src/**/*.js && prettier --write src/**/*.js" }, "keywords": [], @@ -24,7 +23,7 @@ "config": { "forge": { "packagerConfig": { - "icon": "icons/mac/icon", + "icon": "icons/icon", "extendInfo": "Info.plist" }, "makers": [ @@ -51,6 +50,14 @@ ] } }, + "build": { + "fileAssociations": { + "ext": "swf", + "name": "Adobe Flash", + "role": "Viewer", + "perMachine": true + } + }, "devDependencies": { "@electron-forge/cli": "6.0.0-beta.57", "@electron-forge/maker-deb": "6.0.0-beta.57",