3 Commits

Author SHA1 Message Date
928b69b4fb macos bug 2021-04-11 16:45:14 +02:00
b17f5db58e version bump and footer 2021-04-07 22:53:28 +02:00
064287c34f Update README.md 2021-04-07 22:33:12 +02:00
4 changed files with 23 additions and 16 deletions

View File

@@ -14,6 +14,24 @@ To combat and alleviate the symptoms there is the famous 20/20/20 rule that aims
This is not medical advice. Read more [here](https://en.wikipedia.org/wiki/Computer_vision_syndrome) and [here](https://www.aoa.org/healthy-eyes/eye-and-vision-conditions/computer-vision-syndrome). This is not medical advice. Read more [here](https://en.wikipedia.org/wiki/Computer_vision_syndrome) and [here](https://www.aoa.org/healthy-eyes/eye-and-vision-conditions/computer-vision-syndrome).
## 📦 Install ## 📦 Installation
Head to the [release page](https://github.com/cupcakearmy/unpixel/releases) and grab the latest for your platform. Head to the [release page](https://github.com/cupcakearmy/unpixel/releases) and grab the latest for your platform.
- For `macOS` you can downlaod the `.dmg` image.
- For `Windows` download the `.exe`.
- For `Linux` either the `.AppImage` or `.deb`, you will know what fits you 😉.
## Building / Development
1. Clone the repo
2. `yarn install`
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`.
## 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.

View File

@@ -11,7 +11,7 @@
"repository": { "repository": {
"url": "https://github.com/cupcakearmy/unpixel" "url": "https://github.com/cupcakearmy/unpixel"
}, },
"version": "1.0.3", "version": "1.0.5",
"main": "./dist/back/index.js", "main": "./dist/back/index.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
@@ -22,7 +22,6 @@
"build:back": "parcel build --target back ./src/back/index.ts", "build:back": "parcel build --target back ./src/back/index.ts",
"build": "run-s build:*", "build": "run-s build:*",
"pack": "electron-builder -mwl", "pack": "electron-builder -mwl",
"pack:dev": "electron-builder -m",
"dist": "rm -rf .parcel-cache dist && run-s build pack" "dist": "rm -rf .parcel-cache dist && run-s build pack"
}, },
"browserslist": [ "browserslist": [

View File

@@ -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)

View File

@@ -9,7 +9,7 @@ const Footer: React.FC = () => {
<div className="flex justify-center items-center"> <div className="flex justify-center items-center">
<Link link="https://github.com/cupcakearmy" text="Github" /> <Link link="https://github.com/cupcakearmy" text="Github" />
<div className="ph1"> - </div> <div className="ph1"> - </div>
<Link link="https://nicco.io/support" text="Support" /> <Link link="https://nicco.io/support" text="Support / Donate" />
</div> </div>
<div className="code o-20 mt1"> <div className="code o-20 mt1">
<small>version: {version}</small> <small>version: {version}</small>