From a9fff2b87517ea7d2e969bd53d3004f40d4a11db Mon Sep 17 00:00:00 2001 From: Parker Smith Date: Sun, 3 Mar 2024 14:00:41 -0700 Subject: [PATCH] [MLC-37] app: Final productionization --- app/mac/entitlements.mac.inherit.plist | 12 ++++++++++ app/package-lock.json | 33 ++++++++++++++++++++------ app/package.json | 5 ++-- 3 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 app/mac/entitlements.mac.inherit.plist diff --git a/app/mac/entitlements.mac.inherit.plist b/app/mac/entitlements.mac.inherit.plist new file mode 100644 index 0000000..9a279dc --- /dev/null +++ b/app/mac/entitlements.mac.inherit.plist @@ -0,0 +1,12 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.disable-library-validation + + + diff --git a/app/package-lock.json b/app/package-lock.json index 72552e3..2390ae4 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -50,6 +50,7 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", + "dotenv": "^16.4.5", "dprint": "^0.45.0", "electron": "^26.2.0", "electron-builder": "^24.6.4", @@ -3742,12 +3743,15 @@ } }, "node_modules/dotenv": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", - "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true, "engines": { - "node": ">=10" + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" } }, "node_modules/dotenv-expand": { @@ -7555,6 +7559,15 @@ "node": ">=12.0.0" } }, + "node_modules/read-config-file/node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/read-config-file/node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -11592,9 +11605,9 @@ } }, "dotenv": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", - "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true }, "dotenv-expand": { @@ -14206,6 +14219,12 @@ "lazy-val": "^1.0.4" }, "dependencies": { + "dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "dev": true + }, "json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", diff --git a/app/package.json b/app/package.json index 4045ffe..c8d0caf 100644 --- a/app/package.json +++ b/app/package.json @@ -65,6 +65,7 @@ "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", + "dotenv": "^16.4.5", "dprint": "^0.45.0", "electron": "^26.2.0", "electron-builder": "^24.6.4", @@ -107,8 +108,8 @@ "gatekeeperAssess": false, "hardenedRuntime": true, "icon": "assets/icon.icns", - "entitlements": "/Users/parker/Desktop/SideProjects/mlx-chat-app/app/build/entitlements.mac.inherit.plist", - "entitlementsInherit": "/Users/parker/Desktop/SideProjects/mlx-chat-app/app/build/entitlements.mac.inherit.plist" + "entitlements": "./mac/entitlements.mac.inherit.plist", + "entitlementsInherit": "./mac/entitlements.mac.inherit.plist" }, "dmg": { "title": "MLX Chat Installer",