mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
remove LSUIElement=1 in info.plist so that system menu can be shown
This commit is contained in:
parent
a9244333fb
commit
a957acd893
2 changed files with 0 additions and 9 deletions
7
build.py
7
build.py
|
@ -545,13 +545,6 @@ def main():
|
||||||
'cp libsciter.dylib target/release/bundle/osx/RustDesk.app/Contents/MacOS/')
|
'cp libsciter.dylib target/release/bundle/osx/RustDesk.app/Contents/MacOS/')
|
||||||
# https://github.com/sindresorhus/create-dmg
|
# https://github.com/sindresorhus/create-dmg
|
||||||
system2('/bin/rm -rf *.dmg')
|
system2('/bin/rm -rf *.dmg')
|
||||||
plist = "target/release/bundle/osx/RustDesk.app/Contents/Info.plist"
|
|
||||||
txt = open(plist).read()
|
|
||||||
with open(plist, "wt") as fh:
|
|
||||||
fh.write(txt.replace("</dict>", """
|
|
||||||
<key>LSUIElement</key>
|
|
||||||
<string>1</string>
|
|
||||||
</dict>"""))
|
|
||||||
pa = os.environ.get('P')
|
pa = os.environ.get('P')
|
||||||
if pa:
|
if pa:
|
||||||
system2('''
|
system2('''
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
||||||
<key>LSUIElement</key>
|
|
||||||
<string>1</string>
|
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>$(PRODUCT_COPYRIGHT)</string>
|
<string>$(PRODUCT_COPYRIGHT)</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue