Skip to content

Commit

Permalink
feat: windows arm64包构建 #58
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Feb 11, 2023
1 parent e1de003 commit d55048c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}
},
"scripts": {
"pkg-win": "electron-builder --win --x64",
"pkg-win": "electron-builder --win --arm64",
"pkg-mac": "electron-builder --mac --x64",
"pkg-linux": "electron-builder --linux --x64 --arm64",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion res/scripts/injectExt.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const {app, BrowserWindow} = require('electron');
const originloadURL = BrowserWindow.prototype.loadURL;
BrowserWindow.prototype.loadURL = function(){
this.setMinimumSize(300, 300);
// 设置UA
// 设置UA,有些番剧播放链接Windows会403
this.webContents.setUserAgent('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) bilibili_pc/1.9.1 Chrome/98.0.4758.141 Electron/17.4.11 Safari/537.36')
console.log('=====loadURL', arguments)
if(arguments[0].includes('player.html') || arguments[0].includes('index.html')){
Expand Down

0 comments on commit d55048c

Please sign in to comment.