feat: release 2.3.0

This commit is contained in:
Toinane
2025-10-02 03:02:15 +01:00
parent b6055e18db
commit 503678dc08
6 changed files with 34 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install Linux deps
if: ${{ runner.os == 'Linux' }}
run: |
-6
View File
@@ -1,6 +0,0 @@
runtime = electron
target = 38.2.0
target_arch = x64,arm64
disturl = https://electronjs.org/headers
export npm_config_runtime=electron
export npm_config_build_from_source=true
+2 -1
View File
@@ -8,11 +8,12 @@
},
"files": ["src/**"],
"mac": {
"target": [{ "target": "dmg", "arch": ["arm64", "x64"] }],
"target": [{ "target": "default", "arch": ["x64", "arm64"] }],
"category": "public.app-category.graphics-design",
"icon": "build/icon.icns",
"type": "distribution",
"darkModeSupport": true,
"entitlements": "build/entitlements.mac.plist",
"extendInfo": {
"NSUserNotificationAlertStyle": "alert",
"LSHasLocalizedDisplayName": true
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>
+6
View File
@@ -21,6 +21,12 @@
"shading",
"picker"
],
"config": {
"target": "38.2.0",
"disturl": "https://electronjs.org/headers",
"runtime": "electron",
"build_from_source": true
},
"dependencies": {
"electron-json-storage": "^4.6.0",
"robotjs": "github:Toinane/robotjs",
+9 -1
View File
@@ -1,11 +1,19 @@
"use strict";
const { BrowserWindow, nativeImage } = require("electron");
const { BrowserWindow, nativeImage, systemPreferences } = require("electron");
module.exports = (dirname, storage) => {
let win;
let init = () => {
if (process.platform === "darwin") {
const hasPermission = systemPreferences.getMediaAccessStatus("screen");
if (hasPermission !== "granted") {
systemPreferences.askForMediaAccess("screen");
return;
}
}
if (win === null || win === undefined) {
createWindow();
}