Αυτός ο ιστότοπος θα έχει περιορισμένη λειτουργικότητα, όσο εκτελούμε εργασίες συντήρησης για να βελτιώσουμε την εμπειρία σας. Αν ένα άρθρο δεν επιλύει το ζήτημά σας και θέλετε να κάνετε μια ερώτηση, η κοινότητα υποστήριξής μας είναι έτοιμη να σας βοηθήσει στο Twitter (@FirefoxSupport) και στο Reddit (/r/firefox).

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

Deploying Firefox ESR for Mac with policies.json

  • 1 απάντηση
  • 1 έχει αυτό το πρόβλημα
  • 1 προβολή
  • Τελευταία απάντηση από D3xbot

more options

I'm working on building a deployment for Firefox 78.1.0 ESR in a mixed Windows/macOS environment. I've got a policies.json file that works, and was able to install it on Windows via a batch script that runs the installer MSI, creates the distribution directory, and copies the policies.json to that location.

Where I'm struggling is getting this deployed on the Mac side of things. I've followed the directions to apply policy and remove the quarantine here: https://support.mozilla.org/en-US/kb/deploying-firefox-customizations-macos While this works on my Mac, when I deploy it to my test collection (via AirDrop, Self-Service, or by running the PKG file made by JAMF Composer), macOS says the app is damaged and should be deleted.

Does anyone know a way around that?

I'm working on building a deployment for Firefox 78.1.0 ESR in a mixed Windows/macOS environment. I've got a policies.json file that works, and was able to install it on Windows via a batch script that runs the installer MSI, creates the distribution directory, and copies the policies.json to that location. Where I'm struggling is getting this deployed on the Mac side of things. I've followed the directions to apply policy and remove the quarantine here: https://support.mozilla.org/en-US/kb/deploying-firefox-customizations-macos While this works on ''my'' Mac, when I deploy it to my test collection (via AirDrop, Self-Service, or by running the PKG file made by JAMF Composer), macOS says the app is damaged and should be deleted. Does anyone know a way around that?

Επιλεγμένη λύση

In speaking with my supervisor, I found that in building a policy, I can instruct JAMF to install Firefox and run a script post-install. This allowed me to customize Firefox without worrying about signing apps or gatekeeper.

Script:

#! /bin/bash

cd /Applications mkdir ./Firefox.app/Contents/Resources/distribution printf "Your minified JSON\n formatted to Firefox's liking with printf" > ./Firefox.app/Contents/Resources/distribution/policies.json xattr -r -d com.apple.quarantine Firefox.app

Mind the whitespace - when I tried to collapse the spaces, Firefox did not like it. For instance: {

 "policies": {
   "Bookmarks": [
    {
     "Placement": "toolbar",
     "Title": "Google",
     "URL": "https://www.google.com"
    }
   ]
 }

} would become {\n "policies": {\n "Bookmarks": [\n {\n "Placement": "toolbar",\n "Title": "Google",\n "URL": "https://www.google.com"\n }\n ]\n }\n}

Ανάγνωση απάντησης σε πλαίσιο 👍 0

Όλες οι απαντήσεις (1)

more options

Επιλεγμένη λύση

In speaking with my supervisor, I found that in building a policy, I can instruct JAMF to install Firefox and run a script post-install. This allowed me to customize Firefox without worrying about signing apps or gatekeeper.

Script:

#! /bin/bash

cd /Applications mkdir ./Firefox.app/Contents/Resources/distribution printf "Your minified JSON\n formatted to Firefox's liking with printf" > ./Firefox.app/Contents/Resources/distribution/policies.json xattr -r -d com.apple.quarantine Firefox.app

Mind the whitespace - when I tried to collapse the spaces, Firefox did not like it. For instance: {

 "policies": {
   "Bookmarks": [
    {
     "Placement": "toolbar",
     "Title": "Google",
     "URL": "https://www.google.com"
    }
   ]
 }

} would become {\n "policies": {\n "Bookmarks": [\n {\n "Placement": "toolbar",\n "Title": "Google",\n "URL": "https://www.google.com"\n }\n ]\n }\n}