mirror of
https://github.com/praetorian-inc/ChromeAlone
synced 2026-06-06 16:34:31 +00:00
Modifying default MacOS sideloader installation behavior to install the NativeAppHost script
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
# Default parameters
|
||||
EXTENSION_INSTALL_DIR="$HOME/Library/Application Support/Google/Chrome/Default/Extensions/myextension"
|
||||
EXTENSION_DESCRIPTION="Chrome Extension"
|
||||
INSTALL_NATIVE_MESSAGING_HOST="false"
|
||||
INSTALL_NATIVE_MESSAGING_HOST="true"
|
||||
FORCE_RESTART_CHROME="true"
|
||||
|
||||
# Parse command line arguments
|
||||
@@ -82,14 +82,14 @@ get_machine_key() {
|
||||
# Extension crypto helpers
|
||||
calculate_sha256_hash() {
|
||||
local input="$1"
|
||||
echo -n "$input" | /usr/local/bin/shasum -a 256 | /usr/bin/cut -d' ' -f1
|
||||
echo -n "$input" | /usr/bin/shasum -a 256 | /usr/bin/cut -d' ' -f1
|
||||
}
|
||||
|
||||
calculate_extension_id_from_path() {
|
||||
local path="$1"
|
||||
|
||||
# Convert path to UTF-8 bytes then calculate SHA256
|
||||
local sha256_hash=$(echo -n "$path" | /usr/local/bin/shasum -a 256 | /usr/bin/cut -d' ' -f1)
|
||||
local sha256_hash=$(echo -n "$path" | /usr/bin/shasum -a 256 | /usr/bin/cut -d' ' -f1)
|
||||
|
||||
# Convert first 32 hex chars to extension ID (a-p mapping)
|
||||
local extension_id=""
|
||||
|
||||
@@ -311,7 +311,7 @@ MODE="both" # "extension", "iwa", or "both"
|
||||
APP_NAME="ACTUAL_APP_NAME_PLACEHOLDER"
|
||||
EXTENSION_INSTALL_DIR="$HOME/Library/Application Support/Google/ACTUAL_APP_NAME_PLACEHOLDER"
|
||||
EXTENSION_DESCRIPTION="Chrome Extension"
|
||||
INSTALL_NATIVE_MESSAGING_HOST="false"
|
||||
INSTALL_NATIVE_MESSAGING_HOST="true"
|
||||
FORCE_RESTART_CHROME="true"
|
||||
|
||||
# Parse command line arguments
|
||||
|
||||
Reference in New Issue
Block a user