Skip to content

Commit

Permalink
add linux packaging support & correct a little css mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed Oct 20, 2017
1 parent d6e9d42 commit 59bebc0
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<img src="resource/mac.png" alt="logo" width="144" height="144" align="right" />
<img src="resource/dock.png" alt="logo" width="144" height="144" align="right" />


# Glee
Built by Electron, Vanilla JS, Plain CSS
*The icon is a rebound of [Music Service Branding - G](https://dribbble.com/shots/1203920-Music-Service-Branding-G) by [Zack McBride](https://dribbble.com/zMcBride) in [Dribbble](https://dribbble.com/)*
*The logo is a rebound of [Music Service Branding - G](https://dribbble.com/shots/1203920-Music-Service-Branding-G) by [Zack McBride](https://dribbble.com/zMcBride) in [Dribbble](https://dribbble.com/)*
> 勉强算是 "目前最好的网易云音乐客户端 [trazyn/ieaseMusic](https://github.com/trazyn/ieaseMusic)" 的竞品

Expand Down Expand Up @@ -43,8 +43,14 @@ $ npm install
$ npm start
$ npm run package-win
$ npm run package-mac
$ npm run package-linux
```

> 初心是为Windows写的,用的也是Groove Music的样子,不过反正Electron跨平台,我说专属也没用
另外关于排版和显示效果,因为面向Windows,所以使用自带字体微软雅黑(不丑的啊),布局也是按雅黑尺寸来偏移
在linux上和macOS上都不自带微软雅黑,想要较好的显示效果请自行下载安装字体(雅黑真的不丑啊),非常抵触就当我没说
在这里提供[下载地址](https://drive.google.com/open?id=0B8K7gdEWY7snRE9LQU5wU0ltYTA)(Google Drive),提取自自己的Windows 10系统文件夹

## References
- ~~[jariz/vibrant.js](https://github.com/jariz/vibrant.js)~~
感觉很有名,描述是"a javascript port of the awesome Palette class in the Android support library"。不过对比安卓上Phonograph的变色效果,总觉得不太理想,就把issue翻了个遍。按照描述自然感觉是从java的palette类翻译过来的,结果发现作者说是基于color-thief实现的,标题党立功了?另外作者有提到material-palette,用了下感觉确实比这个好
Expand Down
2 changes: 1 addition & 1 deletion css/playbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

#playbar #extra{
height: 64px;
width: 90px;
width: 96px;
right: 10px;
bottom: 24px;
opacity: 0;
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const fs = require('fs')
let mainWindow
let Menu = require('electron').Menu
let mac = process.platform === 'darwin'
let taskbarIcon = path.join(__dirname, '/resource/win.png')
let dockIcon = path.join(__dirname, '/resource/mac.png')
let taskbarIcon = path.join(__dirname, '/resource/glee.png')
let dockIcon = path.join(__dirname, '/resource/dock.png')

var downloadTask = {}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"scripts": {
"start": "./node_modules/.bin/electron .",
"package-win": "./node_modules/.bin/electron-packager . --platform=win32 --arch=x64 --version=1.7.9 --icon=./resource/glee.ico --out=dist/ --overwrite=true --ignore=cache/ --ignore=download/ --ignore=dist/ --ignore=screenshot/ --prune=true",
"package-mac": "./node_modules/.bin/electron-packager . --platform=darwin --arch=all --version=1.7.9 --icon=./resource/glee.icns --out=dist/ --overwrite=true --ignore=cache/ --ignore=download/ --ignore=dist/ --ignore=screenshot/ --prune=true"
"package-mac": "./node_modules/.bin/electron-packager . --platform=darwin --arch=all --version=1.7.9 --icon=./resource/glee.icns --out=dist/ --overwrite=true --ignore=cache/ --ignore=download/ --ignore=dist/ --ignore=screenshot/ --prune=true",
"package-linux": "./node_modules/.bin/electron-packager . --platform=linux --arch=x64 --version=1.7.9 --icon=./resource/glee.png --out=dist/ --overwrite=true --ignore=cache/ --ignore=download/ --ignore=dist/ --ignore=screenshot/ --prune=true"
},
"devDependencies": {
"electron": "^1.7.9",
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 59bebc0

Please sign in to comment.