Commit da4bb1bd authored by Oskar Skog's avatar Oskar Skog

More Mac stuff

parent f4552d65
......@@ -2,6 +2,9 @@
0.5.11
* configure.py (find_MODULES): Support Homebrew's PyPy.
* mkenginecfg: Figures out which systems support which commands.
* Makefile.static, desktop/Info.plist.py, desktop/macosx2:
- Modified the wrapper to clean up the terminal window
- Corrected Info.plist
2019-07-11 Oskar Skog <https://oskog97.com/#contact>
0.5.10
......
......@@ -140,8 +140,7 @@ $(OSX_WRAPPER1) : $(builddir)Makefile
@echo '#!/bin/sh' > "$(OSX_WRAPPER1)"
@echo 'open -b com.apple.terminal' "$(BUNDLE)/Contents/MacOS/macosx2" >> "$(OSX_WRAPPER1)"
$(OSX_INFO_PLIST) : $(OSX_MK_INFO_PLIST) $(builddir)Makefile
@$(python) "$(OSX_MK_INFO_PLIST)" "$(OSX_INFO_PLIST)" "$(NAME_C)" \
"$(NAME_C) - $(DESCRIPTION)" $(VERSION) $(NAME)
@$(python) "$(OSX_MK_INFO_PLIST)" "$(OSX_INFO_PLIST)" "$(DESCRIPTION)" "$(VERSION)"
$(OSX_ICON) : $(srcdir)/desktop/$(NAME)*.png $(OSX_MK_ICON) $(builddir)Makefile
@$(python) "$(OSX_MK_ICON)" "$(OSX_ICON)" "$(srcdir)desktop/$(NAME)"
......
#!/usr/bin/python
# Build Info.plist for Mac OS X.
# Info.plist.py outfile human_name description_name version tech_name
# Info.plist.py outfile slogan version
import sys
f = open(sys.argv[1], 'w')
outfile = sys.argv[1]
slogan = sys.argv[2]
version_in = sys.argv[3]
# Apple wants the major number to be greater than zero.
try:
if version_in.startswith('pre-') or version_in.startswith('test-'):
alpha = True
version_in = version_in.split('-')[1]
else:
alpha = False
major, minor, micro = tuple(map(int, version_in.split('.')))
apple_version = '{0}.{1}{2}'.format(
100*major + minor,
micro,
'd'*alpha
)
except:
apple_version=version_in
f = open(outfile, 'w')
f.write('''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key> <string>{2}</string>
<key>CFBundleDisplayName</key> <string>{3}</string>
<key>CFBundleVersion</key> <string>{4}</string>
<!-- -->
<key>CFBundleName</key> <string>Anonymine</string>
<key>CFBundleIdentifier</key> <string>com.oskog97.anonymine</string>
<key>CFBundleDisplayName</key> <string>Anonymine - {0}</string>
<key>CFBundleVersion</key> <string>{1}</string>
<!--
https://cocoadev.github.io/CFBundleSignature/
<key>CFBundleSignature</key> <string>boom</string>
-->
<key>CFBundlePackageType</key> <string>APPL</string>
<key>CFBundleExecutable</key> <string>macosx1</string>
<key>CFBundleIconFile</key> <string>icon.icns</string>
......@@ -23,10 +46,10 @@ f.write('''<?xml version="1.0" encoding="UTF-8"?>
<!-- -->
<key>NSHumanReadableCopyright</key>
<string>
Copyright (c) 2016, Oskar Skog
Copyright (c) 2016-2019, Oskar Skog
This software is released under the FreeBSD license (2-clause BSD).
</string>
</dict>
</plist>
'''.format(*sys.argv))
'''.format(slogan, apple_version))
f.close()
#!/bin/sh
#!/bin/bash
clear
printf "\033]2; ------- Anonymine ------- \007"
anonymine
clear
echo ")-:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment