2017-07-19 10 views
11

Jestem stoi ten problem, gdy próbuję podpisać ramową nwjsNieszczelne Treści znajdujące się w katalogu głównym wbudowanego ramach

codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\ Framework.framework 

Może ktoś proszę sugerować, co należy zrobić

+0

znaleźliście odpowiedzi? – Arti

+0

Czy obejrzałeś https://stackoverflow.com/questions/25950544/codesign-what-are-unsealed-contents? –

+0

@ 63d26a1c tak, nic nie pomogło – Arti

Odpowiedz

1

Próbowałem to:

nie zmieniaj żadnego innego info.plist z wyjątkiem wymienionych poniżej plików aplikacji i błąd zniknął.

  • Helper.app
  • app_mode_loader.app
  • nwjs.app [główną aplikacji]

także przed podpisaniem ramy do

codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\ Framework.framework/Versions/A/nwjs\ Framework 

następnie

codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\ Framework.framework 
+0

zrobiłeś to ręcznie lub ze skryptem MAS Pythona? – Arti

+0

Nie pomaga mi – Arti

+0

Crashlog: https://pastebin.com/8nF76177 – Arti

0

Zrobiłem mały skrypt, który powinien ci pomóc. Folder 60.0.3112.113 różni się od wersji do wersji.

xattr jest ważne, aby usunąć niedozwolone treści również uważać z nazwą ciebie wykonywalnego

app="yourapp.app" 
identity="Developer ID Application: Yourname...." 

echo "### removing unnecessary files" 
rm -f "$app/Icon^M" #remove if exists 
rm -r -f "$app/.idea" #remove if exists 
xattr -cr "$app" #remove all unallowed files 

echo "### signing libraries" 
#codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/Libraries/exif.so" 
#codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/libffmpeg.dylib" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/libnode.dylib" 

echo "### signing frameworks" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/nwjs Framework" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/Helpers/crashpad_handler" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/timeBro Helper.app/Contents/MacOS/timeBro Helper" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/timeBro Helper.app/" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/helpers/crashpad_handler" 

echo "### sing osx folder" 
codesign --force --verify --sign "$identity" "$app/Contents/MacOS/yourapp" #be careful here should be the exact name of your executably 

echo "### signing app" 
codesign --force --verify --sign "$identity" "$app" 

echo "### verifying signature" 
codesign -vv -d "$app" 
Powiązane problemy