Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/ide_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ def install_vscode_extensions(log):
log.note("could not install %s (marketplace error); re-run the bootstrap to retry" % extension)


CMAKE_STATE_COMPONENTS = {
"CMakePresetLoader": '<component name="CMakePresetLoader"><![CDATA[{\n "useNewFormat": true\n}]]></component>',
"CMakeProjectFlavorService": '<component name="CMakeProjectFlavorService">\n <option name="flavorId" '
'value="CMakePlainProjectFlavor" />\n </component>',
"CMakeReloadState": '<component name="CMakeReloadState">\n <option name="reloaded" value="true" />\n </component>',
}


def set_profiles(log, workspace, label):
"""Enables the MinGW CMake profiles in a JetBrains workspace.xml and selects SELECTED_PROFILE. The IDE keeps the
profiles (enabled or not) there; ones it has not listed yet are added, retired ones disabled, others left alone."""
Expand Down Expand Up @@ -177,6 +185,9 @@ def configuration(name):
for name in RETIRED_PROFILES:
block = re.sub(r'(PROFILE_NAME="%s"[^>]*?ENABLED=")[a-z]+(")' % re.escape(name), r"\1false\2", block, count=1)
text = text[:match.start()] + block + text[match.end():]
for name, component in CMAKE_STATE_COMPONENTS.items():
if not re.search(r'<component name="%s"' % name, text):
text = text.replace("</project>", " %s\n</project>" % component, 1)
target = '<component name="ExecutionTargetManager" SELECTED_TARGET="CMakeBuildProfile:%s" />' % SELECTED_PROFILE
text, count = re.subn(r'<component name="ExecutionTargetManager"[^>]*/>', lambda _: target, text, count=1)
if count == 0:
Expand Down
1 change: 1 addition & 0 deletions site/src/content/docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Previous releases are available on Github as dll files. There is no support for
the latest version, go to the [Home Page](./) instead.

## Version 8.35
* [Developers] The bootstrap writes CLion's CMake profile state itself, so CLion lists the build presets for a fresh checkout without the first-open wizard.
* [New] Linux: the launcher now runs natively as `GWToolbox.AppImage`, which can inject Toolbox into a Guild Wars client already running in Wine. The [Linux Install Guide](/docs/linux/) is rewritten around it, and the site's download buttons offer the AppImage to Linux visitors.
* [New] Agent Appearance: rules can draw up to five marker layers, so a range circle or aura can sit alongside an agent's normal marker. Border thickness is now set per rule.
* [New] Minimap: custom lines, markers, polygons and range circles can be reordered by dragging one row's up/down arrow onto another row.
Expand Down
Loading