##// END OF EJS Templates
packaging: write out editor.rc in Python...
Gregory Szorc -
r44007:8aa6aa9b default
parent child Browse files
Show More
@@ -217,6 +217,13 b' def stage_install(source_dir: pathlib.Pa'
217 """
217 """
218 process_install_rules(STAGING_RULES, source_dir, staging_dir)
218 process_install_rules(STAGING_RULES, source_dir, staging_dir)
219
219
220 # Write out a default editor.rc file to configure notepad as the
221 # default editor.
222 with (staging_dir / 'hgrc.d' / 'editor.rc').open(
223 'w', encoding='utf-8'
224 ) as fh:
225 fh.write('[ui]\neditor = notepad\n')
226
220 # Purge any files we don't want to be there.
227 # Purge any files we don't want to be there.
221 for f in STAGING_EXCLUDES:
228 for f in STAGING_EXCLUDES:
222 p = staging_dir / f
229 p = staging_dir / f
@@ -48,7 +48,6 b' Source: {{ entry.source }}; DestDir: {{ '
48
48
49 [INI]
49 [INI]
50 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: https://mercurial-scm.org/
50 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: https://mercurial-scm.org/
51 Filename: {app}\hgrc.d\editor.rc; Section: ui; Key: editor; String: notepad
52
51
53 [UninstallDelete]
52 [UninstallDelete]
54 Type: files; Name: {app}\Mercurial.url
53 Type: files; Name: {app}\Mercurial.url
General Comments 0
You need to be logged in to leave comments. Login now