Skip to content

Commit

Permalink
fix: windows 右边和更新问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lumozx committed Jan 26, 2024
1 parent 3d31724 commit 4ff1fe1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rishiqing-electron",
"packageManager": "[email protected]",
"private": true,
"version": "4.0.1",
"version": "4.0.2",
"description": "rishiqing pc",
"homepage": "https://www.rishiqing.com",
"author": {
Expand Down
5 changes: 3 additions & 2 deletions plugins/buildPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ const createBuilderOptions = (platform = 'win'): CliOptions => {
{
arch: 'universal',
target: 'dmg',
}
},
],
gatekeeperAssess: false,
hardenedRuntime: true,
identity: pre ? null : undefined,
identity: platform === 'mac' && !pre ? undefined : null,
extendInfo: {
NSAppTransportSecurity: {
NSAllowsArbitraryLoads: true,
Expand Down Expand Up @@ -100,6 +100,7 @@ const createBuilderOptions = (platform = 'win'): CliOptions => {
url: 'https://download.timetask.cn/pc-autoupdate-v4/${os}/${arch}/${env.CHANNEL}',
channel: '${env.CHANNEL}-win-${arch}',
},
verifyUpdateCodeSignature: false,
},
linux: {
target: {
Expand Down
4 changes: 2 additions & 2 deletions src/main/browserView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const createMainBrowserView = async (
view.setBounds({
x: 0,
y: getY(mainWindow.getContentBounds()),
width: mainWindow.getBounds().width,
width: mainWindow.getContentBounds().width,
height: mainWindow.getContentSize()[1],
})
view.webContents.loadURL(url, {
Expand All @@ -62,7 +62,7 @@ export const createMainBrowserView = async (
`)

mainWindow.on('resize', () => {
let newBounds = mainWindow.getBounds()
let newBounds = mainWindow.getContentBounds()
view.setBounds({
x: 0,
y: getY(newBounds),
Expand Down
3 changes: 2 additions & 1 deletion src/main/menu/winTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ const list: MenuItemConstructorOptions[] = [
label: '关于',
click: () => {
dialog.showMessageBox({
type: 'none',
type: 'info',
message: version,
title: '关于',
})
},
},
Expand Down

0 comments on commit 4ff1fe1

Please sign in to comment.