mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Fix path to macOS icons in pyinstaller spec
This commit is contained in:
parent
37366d7bda
commit
f6370383d5
1 changed files with 14 additions and 14 deletions
|
@ -19,7 +19,7 @@ version = dangerzone.dangerzone_version
|
||||||
print("Flock Agent version: {}".format(version))
|
print("Flock Agent version: {}".format(version))
|
||||||
|
|
||||||
if p == "Darwin":
|
if p == "Darwin":
|
||||||
datas = [("../../share", "share"), ("../macos/document.icns", ".")]
|
datas = [("../../share", "share"), ("../macos/../macos/document.icns", ".")]
|
||||||
else:
|
else:
|
||||||
datas = [("../../share", "share")]
|
datas = [("../../share", "share")]
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ if p == "Darwin":
|
||||||
app = BUNDLE(
|
app = BUNDLE(
|
||||||
coll,
|
coll,
|
||||||
name="Dangerzone.app",
|
name="Dangerzone.app",
|
||||||
icon="dangerzone.icns",
|
icon="../macos/dangerzone.icns",
|
||||||
bundle_identifier="media.firstlook.dangerzone",
|
bundle_identifier="media.firstlook.dangerzone",
|
||||||
info_plist={
|
info_plist={
|
||||||
"NSHighResolutionCapable": True,
|
"NSHighResolutionCapable": True,
|
||||||
|
@ -73,14 +73,14 @@ if p == "Darwin":
|
||||||
"CFBundleDocumentTypes": [
|
"CFBundleDocumentTypes": [
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["pdf"],
|
"CFBundleTypeExtensions": ["pdf"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": ["application/pdf"],
|
"CFBundleTypeMIMETypes": ["application/pdf"],
|
||||||
"CFBundleTypeName": "PDF Document",
|
"CFBundleTypeName": "PDF Document",
|
||||||
"CFBundleTypeRole": "Viewer",
|
"CFBundleTypeRole": "Viewer",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["docx", "doc"],
|
"CFBundleTypeExtensions": ["docx", "doc"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
"application/msword",
|
"application/msword",
|
||||||
|
@ -90,7 +90,7 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["xlsx", "xls"],
|
"CFBundleTypeExtensions": ["xlsx", "xls"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
"application/vnd.ms-excel",
|
"application/vnd.ms-excel",
|
||||||
|
@ -100,7 +100,7 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["pptx", "ppt"],
|
"CFBundleTypeExtensions": ["pptx", "ppt"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
||||||
"application/vnd.ms-powerpoint",
|
"application/vnd.ms-powerpoint",
|
||||||
|
@ -110,7 +110,7 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["odg"],
|
"CFBundleTypeExtensions": ["odg"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.oasis.opendocument.text"
|
"application/vnd.oasis.opendocument.text"
|
||||||
],
|
],
|
||||||
|
@ -119,7 +119,7 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["ops"],
|
"CFBundleTypeExtensions": ["ops"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.oasis.opendocument.spreadsheet"
|
"application/vnd.oasis.opendocument.spreadsheet"
|
||||||
],
|
],
|
||||||
|
@ -128,7 +128,7 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["odp"],
|
"CFBundleTypeExtensions": ["odp"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.oasis.opendocument.presentation"
|
"application/vnd.oasis.opendocument.presentation"
|
||||||
],
|
],
|
||||||
|
@ -137,7 +137,7 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["odg"],
|
"CFBundleTypeExtensions": ["odg"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": [
|
"CFBundleTypeMIMETypes": [
|
||||||
"application/vnd.oasis.opendocument.graphics"
|
"application/vnd.oasis.opendocument.graphics"
|
||||||
],
|
],
|
||||||
|
@ -146,28 +146,28 @@ if p == "Darwin":
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["jpg", "jpeg"],
|
"CFBundleTypeExtensions": ["jpg", "jpeg"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": ["image/jpeg"],
|
"CFBundleTypeMIMETypes": ["image/jpeg"],
|
||||||
"CFBundleTypeName": "JPEG Image",
|
"CFBundleTypeName": "JPEG Image",
|
||||||
"CFBundleTypeRole": "Viewer",
|
"CFBundleTypeRole": "Viewer",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["gif"],
|
"CFBundleTypeExtensions": ["gif"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": ["image/gif"],
|
"CFBundleTypeMIMETypes": ["image/gif"],
|
||||||
"CFBundleTypeName": "GIF Image",
|
"CFBundleTypeName": "GIF Image",
|
||||||
"CFBundleTypeRole": "Viewer",
|
"CFBundleTypeRole": "Viewer",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["png"],
|
"CFBundleTypeExtensions": ["png"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": ["image/png"],
|
"CFBundleTypeMIMETypes": ["image/png"],
|
||||||
"CFBundleTypeName": "PNG Image",
|
"CFBundleTypeName": "PNG Image",
|
||||||
"CFBundleTypeRole": "Viewer",
|
"CFBundleTypeRole": "Viewer",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CFBundleTypeExtensions": ["tif", "tiff"],
|
"CFBundleTypeExtensions": ["tif", "tiff"],
|
||||||
"CFBundleTypeIconFile": "document.icns",
|
"CFBundleTypeIconFile": "../macos/document.icns",
|
||||||
"CFBundleTypeMIMETypes": ["image/tiff", "image/x-tiff"],
|
"CFBundleTypeMIMETypes": ["image/tiff", "image/x-tiff"],
|
||||||
"CFBundleTypeName": "TIFF Image",
|
"CFBundleTypeName": "TIFF Image",
|
||||||
"CFBundleTypeRole": "Viewer",
|
"CFBundleTypeRole": "Viewer",
|
||||||
|
|
Loading…
Reference in a new issue