Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
feat(ui): get windows builds working - file associations aren't worki…
Browse files Browse the repository at this point in the history
…ng yet (#11)

* Windows builds are working!

* fix oopsie

* Fix oopie 2

* Add windows fileAssociations

* Try again

* Update README.md

* Update README.md
  • Loading branch information
JoeDuncko authored Jun 5, 2021
1 parent 9714247 commit 4b91408
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -32,7 +32,8 @@ Currently all platforms use the macOS icon.

### Windows

TBD
- Be on a PC
- `npm run make`

### Linux

Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand All @@ -24,7 +23,7 @@
"config": {
"forge": {
"packagerConfig": {
"icon": "icons/mac/icon",
"icon": "icons/icon",
"extendInfo": "Info.plist"
},
"makers": [
Expand All @@ -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",
Expand Down

0 comments on commit 4b91408

Please sign in to comment.