File: README.md
Listen 1 音乐播放器(桌面版)
Listen 1 可以搜索和播放来自多个主流音乐网站的歌曲,让你的曲库更全面。并支持收藏功能,方便的创建自己的歌单。
支持音乐平台
- 网易云音乐
- QQ 音乐
- 酷狗音乐
- 酷我音乐
- bilibili
- 咪咕音乐
- 千千音乐
- 支持 Windows,Mac,Linux 平台
安装方式
访问 github 主页下载安装包安装
网址:https://listen1.github.io/listen1
生成完整代码
项目中包含了 listen1_chrome_extension 的引用,在 checkout 后需要把引用库初始化
git submodule update --init --recursive运行
npm run start生成安装包
全平台安装包
npm run distWindows 安装包
npm run dist:win32
npm run dist:win64Mac 安装包
npm run dist:macLinux 安装包
npm run dist:linux32
npm run dist:linux64File: LICENSE.md
The MIT License (MIT)
Copyright (c) 2016 Listen 1
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File: package.json
{
"name": "listen1",
"version": "2.33.0",
"description": "One for all free music in China",
"main": "app/main.js",
"scripts": {
"postinstall": "electron-builder install-app-deps",
"start": "electron ./app --enable-logging",
"dev": "NODE_ENV='development' npm run start",
"dist:mac": "CSC_IDENTITY_AUTO_DISCOVERY=false DEBUG=electron-builder electron-builder --mac",
"dist": "electron-builder .",
"dist:linux": "electron-builder --linux --ia32 --x64",
"dist:linux32": "electron-builder --linux --ia32",
"dist:linux64": "electron-builder --linux --x64",
"dist:linuxArm64": "electron-builder --linux --arm64",
"dist:linuxArmv7l": "electron-builder --linux --armv7l",
"dist:win": "electron-builder --win"
},
"repository": {
"type": "git",
"url": "git+https://github.com/listen1/listen1_desktop.git"
},
"keywords": [
"Electron",
"Listen 1"
],
"author": "Listen 1 [email protected]",
"license": "MIT",
"bugs": {
"url": "https://github.com/listen1/listen1_desktop/issues"
},
"homepage": "https://github.com/listen1/listen1_desktop#readme",
"build": {
"appId": "com.listen1.listen1",
"productName": "Listen1",
"asar": true,
"artifactName": "${name}${version}${os}_${arch}.${ext}",
"dmg": {
"icon": "build/disk.icns",
"contents": [
{
"x": 192,
"y": 344
},
{
"x": 448,
"y": 344,
"type": "link",
"path": "/Applications"
}
]
},
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64",
"universal"
]
}
],
"category": "public.app-category.music"
},
"linux": {
"target": [
"tar.gz",
"appImage",
"deb"
],
"category": "Audio"
},
"nsis": {
"runAfterFinish": false,
"deleteAppDataOnUninstall": true,
"allowToChangeInstallationDirectory": true,
"oneClick": false,
"installerLanguages": "zh_CN",
"language": 2052,
"perMachine": true,
"createDesktopShortcut": true
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32",
"arm64"
]
},
{
"target": "7z",
"arch": [
"x64",
"ia32",
"arm64"
]
}
],
"icon": "build/icon.ico"
}
},
"devDependencies": {
"electron": "^32.3.2",
"electron-builder": "^25.1.8",
"prettier": "^2.6.2"
}
}
File: app/package.json
{
"name": "listen1",
"version": "2.33.0",
"description": "One for all free music in China",
"main": "main.js",
"scripts": {
"start": "electron main.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/listen1/listen1_desktop.git"
},
"keywords": [
"Electron",
"Listen 1",
"music player"
],
"author": "Listen 1 [email protected]",
"license": "MIT",
"bugs": {
"url": "https://github.com/listen1/listen1_desktop/issues"
},
"homepage": "https://github.com/listen1/listen1_desktop#readme",
"dependencies": {
"@electron/remote": "^2.1.2",
"chardet": "^1.4.0",
"electron-store": "^8.0.1",
"electron-updater": "^5.0.1",
"music-metadata": "^7.12.3"
}
}
File: .github/workflows/release.yml
name: Build/release
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
submodules: true
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2
with:
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}