-
-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates for main #2019
Updates for main #2019
Changes from all commits
3780ed7
982b915
3bc7597
ec36079
10292cf
b546c1b
9c54325
9b5b42e
d69f7ca
f22ef5e
1b70cae
2f9e61c
b77c3a1
ef7156c
b5c23bd
3293675
a3d8e51
433eb68
4d0b41f
d33a779
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ yarn.lock | |
/dist-js | ||
mas.provisionprofile | ||
.vscode | ||
.DS_store |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/hydrogen |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "caprine", | ||
"productName": "Caprine", | ||
"version": "2.57.3", | ||
"version": "2.57.4", | ||
"description": "Elegant Facebook Messenger desktop app", | ||
"license": "MIT", | ||
"repository": "sindresorhus/caprine", | ||
|
@@ -102,14 +102,22 @@ | |
"!media${/*}" | ||
], | ||
"asarUnpack": [ | ||
"static/Icon.png" | ||
"static/Icon.png", | ||
"static/icon.ico" | ||
], | ||
"appId": "com.sindresorhus.caprine", | ||
"mac": { | ||
"category": "public.app-category.social-networking", | ||
"icon": "build/icon.png", | ||
"electronUpdaterCompatibility": ">=2.15.0", | ||
"electronUpdaterCompatibility": ">=4.5.2", | ||
"darkModeSupport": true, | ||
"target": { | ||
"target": "default", | ||
"arch": [ | ||
"x64", | ||
"arm64" | ||
] | ||
}, | ||
Comment on lines
+114
to
+120
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already added #2015 |
||
"extendInfo": { | ||
"LSUIElement": 1, | ||
"NSCameraUsageDescription": "Caprine needs access to your camera.", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
|
||
## Install | ||
|
||
*macOS 10.10+, Linux, and Windows 10+ are supported (64-bit only).* | ||
*macOS 10.12+ (Intel and Apple Silicon), Linux (x64 and arm64), and Windows 10+ (64-bit) are supported.* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already added #2015 |
||
|
||
Download the latest version on the [website](https://sindresorhus.com/caprine) or below. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ import {sendAction, sendBackgroundAction, messengerDomain, stripTrackingFromUrl} | |
import {process as processEmojiUrl} from './emoji'; | ||
import ensureOnline from './ensure-online'; | ||
import {setUpMenuBarMode} from './menu-bar-mode'; | ||
import {caprineIconPath} from './constants'; | ||
import {caprineIconPath, caprineWinIconPath} from './constants'; | ||
|
||
ipcMain.setMaxListeners(100); | ||
|
||
|
@@ -59,6 +59,14 @@ if (!config.get('hardwareAcceleration')) { | |
app.disableHardwareAcceleration(); | ||
} | ||
|
||
if (config.get('hardwareAcceleration')) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're reading config of the app, the property should be defined in source/config.ts and also you should define migrations so the property gets created after an update. |
||
// Enable hardware acceleration for all configs | ||
app.commandLine.appendSwitch('ignore-gpu-blocklist'); | ||
} | ||
|
||
// Enables QUIC protocol, used by many Facebook and Google subdomains | ||
app.commandLine.appendSwitch('enable-quic'); | ||
|
||
if (!is.development && config.get('autoUpdate')) { | ||
(async () => { | ||
const FOUR_HOURS = 1000 * 60 * 60 * 4; | ||
|
@@ -288,11 +296,15 @@ function createMainWindow(): BrowserWindow { | |
y: lastWindowState.y, | ||
width: lastWindowState.width, | ||
height: lastWindowState.height, | ||
icon: is.linux ? caprineIconPath : undefined, | ||
icon: is.linux || is.macos ? caprineIconPath : caprineWinIconPath, | ||
minWidth: 400, | ||
minHeight: 200, | ||
alwaysOnTop: config.get('alwaysOnTop'), | ||
titleBarStyle: 'hiddenInset', | ||
trafficLightPosition: { | ||
x: 80, | ||
y: 20, | ||
}, | ||
Comment on lines
+304
to
+307
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already fixed #2014 |
||
autoHideMenuBar: config.get('autoHideMenuBar'), | ||
webPreferences: { | ||
preload: path.join(__dirname, 'browser.js'), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I this is for macOS, it's already fixed #2014