~eliasnaur/gio-example

41edb2536ed997440d2e6bafea834e05f9a9d4f1 — Chris Waldon 2 months ago 3429355
x/notify: fix macOS example build process

The go generate command that creates an application bundle was
missing some of the scaffolding required to make well-formed
application. This ensured that the resulting app always failed
to send notifications.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
4 files changed, 51 insertions(+), 0 deletions(-)

R x/notify/{hello_macos.go => build_macos.go}
A x/notify/example.app/Contents/Info.plist
A x/notify/example.app/Contents/PkgInfo
R x/notify/{hello.go => main.go}
R x/notify/hello_macos.go => x/notify/build_macos.go +0 -0
A x/notify/example.app/Contents/Info.plist => x/notify/example.app/Contents/Info.plist +50 -0
@@ 0,0 1,50 @@
<?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>BuildMachineOSBuild</key>
	<string>18G103</string>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>example</string>
	<key>CFBundleIdentifier</key>
	<string>org.gioui</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>example</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSupportedPlatforms</key>
	<array>
		<string>MacOSX</string>
	</array>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>DTCompiler</key>
	<string>com.apple.compilers.llvm.clang.1_0</string>
	<key>DTPlatformBuild</key>
	<string>11C505</string>
	<key>DTPlatformVersion</key>
	<string>GM</string>
	<key>DTSDKBuild</key>
	<string>19B90</string>
	<key>DTSDKName</key>
	<string>macosx10.15</string>
	<key>DTXcode</key>
	<string>1130</string>
	<key>DTXcodeBuild</key>
	<string>11C505</string>
	<key>LSMinimumSystemVersion</key>
	<string>10.14</string>
	<key>NSPrincipalClass</key>
	<string>NSApplication</string>
	<key>NSSupportsAutomaticTermination</key>
	<true/>
	<key>NSSupportsSuddenTermination</key>
	<true/>
</dict>
</plist>

A x/notify/example.app/Contents/PkgInfo => x/notify/example.app/Contents/PkgInfo +1 -0
@@ 0,0 1,1 @@
APPL????
\ No newline at end of file

R x/notify/hello.go => x/notify/main.go +0 -0