mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 08:06:33 +00:00
macos bug
This commit is contained in:
parent
b17f5db58e
commit
928b69b4fb
@ -29,3 +29,9 @@ Head to the [release page](https://github.com/cupcakearmy/unpixel/releases) and
|
|||||||
3. `yarn dist` to build for all platforms
|
3. `yarn dist` to build for all platforms
|
||||||
|
|
||||||
Alternatevly you can run `yarn build` and the `yarn electron-builder -m` for `macOS`, `-l` fir `linux` or `-w` for `windows`.
|
Alternatevly you can run `yarn build` and the `yarn electron-builder -m` for `macOS`, `-l` fir `linux` or `-w` for `windows`.
|
||||||
|
|
||||||
|
## RELEASE
|
||||||
|
|
||||||
|
1. Create a draft release with the new version. (e.g. tag with `v1.2.3`).
|
||||||
|
2. Push to master and github workflow will build and upload assets to the draft matching the version of `package.json` and draft.
|
||||||
|
3. When ready publish release.
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/cupcakearmy/unpixel"
|
"url": "https://github.com/cupcakearmy/unpixel"
|
||||||
},
|
},
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"main": "./dist/back/index.js",
|
"main": "./dist/back/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
|
@ -49,7 +49,8 @@ export default class Banner {
|
|||||||
},
|
},
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 600,
|
height: 600,
|
||||||
fullscreen: !DEV,
|
fullscreen: true,
|
||||||
|
simpleFullscreen: os.platform() === 'darwin',
|
||||||
}
|
}
|
||||||
this.window = new BrowserWindow(options)
|
this.window = new BrowserWindow(options)
|
||||||
|
|
||||||
@ -59,17 +60,6 @@ export default class Banner {
|
|||||||
if (DEV) {
|
if (DEV) {
|
||||||
this.window.webContents.toggleDevTools()
|
this.window.webContents.toggleDevTools()
|
||||||
} else {
|
} else {
|
||||||
switch (os.platform()) {
|
|
||||||
case 'win32':
|
|
||||||
break
|
|
||||||
case 'linux':
|
|
||||||
break
|
|
||||||
case 'darwin':
|
|
||||||
this.window.setSimpleFullScreen(true)
|
|
||||||
this.window.setFullScreenable(false)
|
|
||||||
break
|
|
||||||
}
|
|
||||||
// this.window.maximize()
|
|
||||||
this.window.setAlwaysOnTop(true, 'floating', 99)
|
this.window.setAlwaysOnTop(true, 'floating', 99)
|
||||||
this.window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
|
this.window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
|
||||||
this.window.setMovable(false)
|
this.window.setMovable(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user