forked from qier222/YesPlayMusic
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
378 changed files
with
5,394 additions
and
17,438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
node_modules | ||
npm-debug.log | ||
Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
.git | ||
.github | ||
.gitignore | ||
README.md | ||
LICENSE | ||
.vscode | ||
dist | ||
dist_electron | ||
build | ||
images | ||
script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
- master | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
|
@@ -18,11 +19,14 @@ jobs: | |
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.16.0 | ||
node-version: 16 | ||
cache: 'yarn' | ||
|
||
- name: Install RPM & Pacman (on Ubuntu) | ||
if: runner.os == 'Linux' | ||
|
@@ -35,8 +39,9 @@ jobs: | |
- name: Install Snapcraft (on Ubuntu) | ||
uses: samuelmeuli/action-snapcraft@v1 | ||
if: startsWith(matrix.os, 'ubuntu') | ||
with: | ||
snapcraft_token: ${{ secrets.snapcraft_token }} | ||
# with: | ||
# Disable since the Snapcraft token is currently not working | ||
# snapcraft_token: ${{ secrets.snapcraft_token }} | ||
|
||
- name: Build/release Electron app | ||
uses: samuelmeuli/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
build | ||
coverage | ||
dist | ||
netease_api | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM node:16.13.1-alpine as build | ||
ENV VUE_APP_NETEASE_API_URL=/api | ||
WORKDIR /app | ||
RUN apk add --no-cache python3 make g++ git | ||
COPY package.json yarn.lock ./ | ||
RUN yarn install | ||
COPY . . | ||
RUN yarn build | ||
|
||
FROM nginx:1.20.2-alpine as app | ||
RUN echo $'server { \n\ | ||
gzip on;\n\ | ||
listen 80; \n\ | ||
listen [::]:80; \n\ | ||
server_name localhost; \n\ | ||
\n\ | ||
location / { \n\ | ||
root /usr/share/nginx/html; \n\ | ||
index index.html; \n\ | ||
try_files $uri $uri/ /index.html; \n\ | ||
} \n\ | ||
\n\ | ||
location @rewrites { \n\ | ||
rewrite ^(.*)$ /index.html last; \n\ | ||
} \n\ | ||
\n\ | ||
location /api/ { \n\ | ||
proxy_set_header Host $host; \n\ | ||
proxy_set_header X-Real-IP $remote_addr; \n\ | ||
proxy_set_header X-Forwarded-For $remote_addr; \n\ | ||
proxy_set_header X-Forwarded-Host $remote_addr; \n\ | ||
proxy_set_header X-NginX-Proxy true; \n\ | ||
proxy_pass http://localhost:3000/; \n\ | ||
} \n\ | ||
}' > /etc/nginx/conf.d/default.conf | ||
|
||
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.14/main libuv \ | ||
&& apk add --no-cache --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.14/main nodejs npm \ | ||
&& npm i -g NeteaseCloudMusicApi | ||
|
||
COPY --from=build /app/dist /usr/share/nginx/html | ||
|
||
CMD nginx ; exec npx NeteaseCloudMusicApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
module.exports = { | ||
presets: ["@vue/cli-plugin-babel/preset"], | ||
plugins: [ | ||
"@babel/plugin-proposal-nullish-coalescing-operator", | ||
"@babel/plugin-proposal-optional-chaining", | ||
presets: [ | ||
[ | ||
'@vue/cli-plugin-babel/preset', | ||
{ | ||
useBuiltIns: 'usage', | ||
shippedProposals: true, | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
YesPlayMusic: | ||
build: | ||
context: . | ||
image: yesplaymusic | ||
container_name: YesPlayMusic | ||
ports: | ||
- 80:80 | ||
restart: always |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.