Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for Windows, Mac Intel/Silicon, Linux #235

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
npm-debug.log
*.provisionprofile
.awcache
appSign.js
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ And then input `HOST`, `PORT` and `PASSWORD` to the connection tab.
* Contribute Code! We're developers! (See Roadmap below)
* Medis is available on the Mac App Store as a paid software. I'll be very grateful if you'd like to buy it to encourage me to continue maintaining Medis. There are no additional features comparing with the open-sourced version, except the fact that you can enjoy auto updating that brought by the Mac App Store. <br> [![Download on the App Store](http://getmedis.com/download.svg)](https://itunes.apple.com/app/medis-gui-for-redis/id1063631769)


## electron-builder

Switch node to v14
```
yarn install
yarn run build
npx electron-builder --mac --x64
npx electron-builder --linux --x64
npx electron-builder --win --x64
```

Switch node to v16
```
npx electron-builder --mac --arm64
```
## Roadmap

* Windows and Linux version (with electron-packager)
Expand Down
44 changes: 44 additions & 0 deletions electron-builder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
directories:{
app: '.',
},
files:[
"./.webpack/**/*",
"./package.json",
],
appId: 'li.zihua.medis',
productName: 'Medis',
artifactName: '${name}-${os}-${arch}-${version}.${ext}',
copyright: '© 2019, Zihua Li',
// npmRebuild: 'false',
// afterSign: "./appSign.js",
mac: {
icon: 'resources/icns/MyIcon.icns',
// background: 'assets/DMGBG.png',
// backgroundColor: '#6186ff',
//entitlements: "sign/entitlements.plist",
category: 'public.app-category.developer-tools',
target: [
'dmg',
'zip',
// 'mas'
],
publish: [ 'github' ],
},
win: {
target: 'nsis',
icon: 'resources/icns/MyIcon.icns',
publish: [ 'github' ]
},
linux: {
target: 'AppImage',
icon: 'resources/icns/Icon1024.png',
publish: [ 'github' ]
},
nsis: {
deleteAppDataOnUninstall: true,
createDesktopShortcut: 'always'
// include: 'nsis.nsh'
},
publish: null
}
Loading