mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 06:15:26 +08:00
revert: change port to workaround 21H2's port
This commit is contained in:
parent
2a0af8f975
commit
ce738f6b40
|
@ -1,6 +1,6 @@
|
||||||
VUE_APP_NETEASE_API_URL=/api
|
VUE_APP_NETEASE_API_URL=/api
|
||||||
VUE_APP_ELECTRON_API_URL=/api
|
VUE_APP_ELECTRON_API_URL=/api
|
||||||
VUE_APP_ELECTRON_API_URL_DEV=http://127.0.0.1:35216
|
VUE_APP_ELECTRON_API_URL_DEV=http://127.0.0.1:10754
|
||||||
VUE_APP_LASTFM_API_KEY=09c55292403d961aa517ff7f5e8a3d9c
|
VUE_APP_LASTFM_API_KEY=09c55292403d961aa517ff7f5e8a3d9c
|
||||||
VUE_APP_LASTFM_API_SHARED_SECRET=307c9fda32b3904e53654baff215cb67
|
VUE_APP_LASTFM_API_SHARED_SECRET=307c9fda32b3904e53654baff215cb67
|
||||||
DEV_SERVER_PORT=20201
|
DEV_SERVER_PORT=20201
|
||||||
|
|
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -82,7 +82,7 @@ jobs:
|
||||||
uses: samuelmeuli/action-electron-builder@v1.6.0
|
uses: samuelmeuli/action-electron-builder@v1.6.0
|
||||||
env:
|
env:
|
||||||
VUE_APP_ELECTRON_API_URL: /api
|
VUE_APP_ELECTRON_API_URL: /api
|
||||||
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:35216
|
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:10754
|
||||||
VUE_APP_LASTFM_API_KEY: 09c55292403d961aa517ff7f5e8a3d9c
|
VUE_APP_LASTFM_API_KEY: 09c55292403d961aa517ff7f5e8a3d9c
|
||||||
VUE_APP_LASTFM_API_SHARED_SECRET: 307c9fda32b3904e53654baff215cb67
|
VUE_APP_LASTFM_API_SHARED_SECRET: 307c9fda32b3904e53654baff215cb67
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "yesplaymusic",
|
"name": "yesplaymusic",
|
||||||
"version": "0.4.6",
|
"version": "0.4.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A third party music player for Netease Music",
|
"description": "A third party music player for Netease Music",
|
||||||
"author": "qier222<qier222@outlook.com>",
|
"author": "qier222<qier222@outlook.com>",
|
||||||
|
|
|
@ -66,7 +66,7 @@ const closeOnLinux = (e, win, store) => {
|
||||||
win.hide(); //调用 最小化实例方法
|
win.hide(); //调用 最小化实例方法
|
||||||
} else if (result.response === 1) {
|
} else if (result.response === 1) {
|
||||||
win = null;
|
win = null;
|
||||||
app.exit(); // exit()直接关闭客户端,不会执行quit();
|
app.exit(); //exit()直接关闭客户端,不会执行quit();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
@ -153,7 +153,7 @@ class Background {
|
||||||
|
|
||||||
const expressApp = express();
|
const expressApp = express();
|
||||||
expressApp.use('/', express.static(__dirname + '/'));
|
expressApp.use('/', express.static(__dirname + '/'));
|
||||||
expressApp.use('/api', expressProxy('http://127.0.0.1:35216'));
|
expressApp.use('/api', expressProxy('http://127.0.0.1:10754'));
|
||||||
expressApp.use('/player', (req, res) => {
|
expressApp.use('/player', (req, res) => {
|
||||||
this.window.webContents
|
this.window.webContents
|
||||||
.executeJavaScript('window.yesplaymusic.player')
|
.executeJavaScript('window.yesplaymusic.player')
|
||||||
|
@ -166,7 +166,7 @@ class Background {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.expressApp = expressApp.listen(41342, '127.0.0.1');
|
this.expressApp = expressApp.listen(27232, '127.0.0.1');
|
||||||
}
|
}
|
||||||
|
|
||||||
createWindow() {
|
createWindow() {
|
||||||
|
@ -257,8 +257,8 @@ class Background {
|
||||||
createProtocol('app');
|
createProtocol('app');
|
||||||
this.window.loadURL(
|
this.window.loadURL(
|
||||||
showLibraryDefault
|
showLibraryDefault
|
||||||
? 'http://localhost:41342/#/library'
|
? 'http://localhost:27232/#/library'
|
||||||
: 'http://localhost:41342'
|
: 'http://localhost:27232'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ export async function startNeteaseMusicApi() {
|
||||||
|
|
||||||
// Load the NCM API.
|
// Load the NCM API.
|
||||||
await server.serveNcmApi({
|
await server.serveNcmApi({
|
||||||
port: 35216,
|
port: 10754,
|
||||||
moduleDefs: require('../ncmModDef'),
|
moduleDefs: require('../ncmModDef'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user