summary history branches tags files
commit:0468eac696677c9a9bd142ebd3a080adde76b20a
author:Trevor Bentley
committer:GitHub
date:Wed Aug 5 15:10:13 2020 +0200
parents:3bbbc53e0e3555c19b4f9c47090f1101d9ef5f02, a935358ece74453770335512442bcd3aab70cedf
Merge pull request #18 from LoganDark/plist-quotes

Quote CFBundleName, CFBundleDisplayName, CFBundleExecutable
diff --git a/src/osx.rs b/src/osx.rs
line changes: +3/-3
index 867ef3b..dc4518c
--- a/src/osx.rs
+++ b/src/osx.rs
@@ -465,10 +465,10 @@ impl Trampoline {
 
             // Mandatory fields
             write!(&mut f, "{{\n")?;
-            write!(&mut f, "  CFBundleName = {};\n", self.name)?;
-            write!(&mut f, "  CFBundleDisplayName = {};\n", self.name)?;
+            write!(&mut f, "  CFBundleName = \"{}\";\n", self.name)?;
+            write!(&mut f, "  CFBundleDisplayName = \"{}\";\n", self.name)?;
             write!(&mut f, "  CFBundleIdentifier = \"{}\";\n", self.ident)?;
-            write!(&mut f, "  CFBundleExecutable = {};\n", self.exe)?;
+            write!(&mut f, "  CFBundleExecutable = \"{}\";\n", self.exe)?;
             write!(&mut f, "  CFBundleIconFile = \"{}\";\n", self.icon)?;
             write!(&mut f, "  CFBundleVersion = \"{}\";\n", self.version)?;