Skip to content

Commit 4e82ef1

Browse files
committed
Fix bytes/string issue in dmgbuild_settings.py
1 parent 943ea36 commit 4e82ef1

1 file changed

Lines changed: 16 additions & 24 deletions

File tree

release/mac/dmgbuild_settings.py

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -202,24 +202,16 @@ def icon_from_app(app_path):
202202
# RTF (in which case it must start "{\rtf1"), or a path to a file
203203
# containing the license text. If you're using RTF,
204204
# watch out for Python escaping (or read it from a file).
205-
"en_US": b"""{\\rtf1\\ansi\\ansicpg1252\\cocoartf1504\\cocoasubrtf820
206-
{\\fonttbl\\f0\\fnil\\fcharset0 Helvetica-Bold;\\f1\\fnil\\fcharset0 Helvetica;}
207-
{\\colortbl;\\red255\\green255\\blue255;\\red0\\green0\\blue0;}
208-
{\\*\\expandedcolortbl;;\\cssrgb\\c0\\c0\\c0;}
209-
\\paperw11905\\paperh16837\\margl1133\\margr1133\\margb1133\\margt1133
210-
\\deftab720
211-
\\pard\\pardeftab720\\sa160\\partightenfactor0
212-
213-
\\f0\\b\\fs60 \\cf2 \\expnd0\\expndtw0\\kerning0
214-
\\up0 \\nosupersub \\ulnone \\outl0\\strokewidth0 \\strokec2 Test License\\
215-
\\pard\\pardeftab720\\sa160\\partightenfactor0
216-
217-
\\fs36 \\cf2 \\strokec2 What is this?\\
218-
\\pard\\pardeftab720\\sa160\\partightenfactor0
219-
220-
\\f1\\b0\\fs22 \\cf2 \\strokec2 This is the English license. It says what you are allowed to do with this software.\\
221-
\\
222-
}""",
205+
"en_US": b"""
206+
The OpenBCI GUI is licensed under the MIT License.
207+
208+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
209+
210+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
211+
212+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
213+
214+
"""
223215
},
224216
"buttons": {
225217
# For each language, text for the buttons on the licensing window.
@@ -249,12 +241,12 @@ def icon_from_app(app_path):
249241
# You don't need to specify them for those languages; if you fail to
250242
# specify them for some other language, English will be used instead.
251243
"en_US": (
252-
b"English",
253-
b"Agree",
254-
b"Disagree",
255-
b"Print",
256-
b"Save",
257-
b'Do you agree to the terms of the MIT license? Press "Agree" or "Disagree".',
244+
"English",
245+
"Agree",
246+
"Disagree",
247+
"Print",
248+
"Save",
249+
'Do you agree to the terms of the MIT license? Press "Agree" or "Disagree".',
258250
),
259251
},
260252
}

0 commit comments

Comments
 (0)