mirror of
https://github.com/Toinane/colorpicker.git
synced 2026-08-24 02:24:12 -05:00
feat: release 2.3.0
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user