2024-08-28 03:49:49 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
// Generated Code. DO NOT EDIT.
|
|
|
|
|
|
|
|
package wconfig
|
|
|
|
|
|
|
|
const (
|
2024-12-18 00:25:34 +01:00
|
|
|
ConfigKey_AppClear = "app:*"
|
|
|
|
ConfigKey_AppGlobalHotkey = "app:globalhotkey"
|
2024-12-19 04:44:50 +01:00
|
|
|
ConfigKey_AppDismissArchitectureWarning = "app:dismissarchitecturewarning"
|
2024-12-18 00:25:34 +01:00
|
|
|
|
2024-08-28 22:21:08 +02:00
|
|
|
ConfigKey_AiClear = "ai:*"
|
2024-10-13 00:40:14 +02:00
|
|
|
ConfigKey_AiPreset = "ai:preset"
|
2024-10-09 22:36:02 +02:00
|
|
|
ConfigKey_AiApiType = "ai:apitype"
|
2024-08-28 22:21:08 +02:00
|
|
|
ConfigKey_AiBaseURL = "ai:baseurl"
|
|
|
|
ConfigKey_AiApiToken = "ai:apitoken"
|
|
|
|
ConfigKey_AiName = "ai:name"
|
|
|
|
ConfigKey_AiModel = "ai:model"
|
2024-10-09 22:36:02 +02:00
|
|
|
ConfigKey_AiOrgID = "ai:orgid"
|
|
|
|
ConfigKey_AIApiVersion = "ai:apiversion"
|
2024-08-28 22:21:08 +02:00
|
|
|
ConfigKey_AiMaxTokens = "ai:maxtokens"
|
|
|
|
ConfigKey_AiTimeoutMs = "ai:timeoutms"
|
2024-12-17 03:23:42 +01:00
|
|
|
ConfigKey_AiFontSize = "ai:fontsize"
|
|
|
|
ConfigKey_AiFixedFontSize = "ai:fixedfontsize"
|
2024-08-28 22:21:08 +02:00
|
|
|
|
|
|
|
ConfigKey_TermClear = "term:*"
|
|
|
|
ConfigKey_TermFontSize = "term:fontsize"
|
|
|
|
ConfigKey_TermFontFamily = "term:fontfamily"
|
2024-10-07 23:08:57 +02:00
|
|
|
ConfigKey_TermTheme = "term:theme"
|
2024-08-28 22:21:08 +02:00
|
|
|
ConfigKey_TermDisableWebGl = "term:disablewebgl"
|
2024-09-27 00:34:52 +02:00
|
|
|
ConfigKey_TermLocalShellPath = "term:localshellpath"
|
2024-10-01 06:19:07 +02:00
|
|
|
ConfigKey_TermLocalShellOpts = "term:localshellopts"
|
2024-10-07 18:51:23 +02:00
|
|
|
ConfigKey_TermScrollback = "term:scrollback"
|
2024-10-14 19:05:38 +02:00
|
|
|
ConfigKey_TermCopyOnSelect = "term:copyonselect"
|
2024-12-19 19:41:28 +01:00
|
|
|
ConfigKey_TermTransparency = "term:transparency"
|
2024-08-28 22:21:08 +02:00
|
|
|
|
2024-09-04 23:00:29 +02:00
|
|
|
ConfigKey_EditorMinimapEnabled = "editor:minimapenabled"
|
2024-09-05 08:08:56 +02:00
|
|
|
ConfigKey_EditorStickyScrollEnabled = "editor:stickyscrollenabled"
|
2024-12-04 23:16:50 +01:00
|
|
|
ConfigKey_EditorWordWrap = "editor:wordwrap"
|
2024-12-17 03:23:42 +01:00
|
|
|
ConfigKey_EditorFontSize = "editor:fontsize"
|
2024-09-04 23:00:29 +02:00
|
|
|
|
2024-08-28 22:21:08 +02:00
|
|
|
ConfigKey_WebClear = "web:*"
|
|
|
|
ConfigKey_WebOpenLinksInternally = "web:openlinksinternally"
|
2024-09-20 20:24:37 +02:00
|
|
|
ConfigKey_WebDefaultUrl = "web:defaulturl"
|
|
|
|
ConfigKey_WebDefaultSearch = "web:defaultsearch"
|
2024-08-28 22:21:08 +02:00
|
|
|
|
|
|
|
ConfigKey_BlockHeaderClear = "blockheader:*"
|
|
|
|
ConfigKey_BlockHeaderShowBlockIds = "blockheader:showblockids"
|
|
|
|
|
|
|
|
ConfigKey_AutoUpdateClear = "autoupdate:*"
|
|
|
|
ConfigKey_AutoUpdateEnabled = "autoupdate:enabled"
|
|
|
|
ConfigKey_AutoUpdateIntervalMs = "autoupdate:intervalms"
|
|
|
|
ConfigKey_AutoUpdateInstallOnQuit = "autoupdate:installonquit"
|
Add release channels (#385)
## New release flow
1. Run "Bump Version" workflow with the desired version bump and the
prerelease flag set to `true`. This will push a new version bump to the
target branch and create a new git tag.
- See below for more info on how the version bumping works.
2. A new "Build Helper" workflow run will kick off automatically for the
new tag. Once it is complete, test the new build locally by downloading
with the [download
script](https://github.com/wavetermdev/thenextwave/blob/main/scripts/artifacts/download-staged-artifact.sh).
3. Release the new build using the [publish
script](https://github.com/wavetermdev/thenextwave/blob/main/scripts/artifacts/publish-from-staging.sh).
This will trigger electron-updater to distribute the package to beta
users.
4. Run "Bump Version" again with a release bump (either `major`,
`minor`, or `patch`) and the prerelease flag set to `false`.
6. Release the new build to all channels using the [publish
script](https://github.com/wavetermdev/thenextwave/blob/main/scripts/artifacts/publish-from-staging.sh).
This will trigger electron-updater to distribute the package to all
users.
## Change Summary
Creates a new "Bump Version" workflow to manage versioning and tag
creation.
Build Helper is now automated.
### Version bumps
Updates the `version.cjs` script so that an argument can be passed to
trigger a version bump. Under the hood, this utilizes NPM's `semver`
package.
If arguments are present, the version will be bumped.
If only a single argument is given, the following are valid inputs:
- `none`: No-op.
- `patch`: Bumps the patch version.
- `minor`: Bumps the minor version.
- `major`: Bumps the major version.
- '1', 'true': Bumps the prerelease version.
If two arguments are given, the first argument must be either `none`,
`patch`, `minor`, or `major`. The second argument must be `1` or `true`
to bump the prerelease version.
### electron-builder
We are now using the release channels support in electron-builder. This
will automatically detect the channel being built based on the package
version to determine which channel update files need to be generated.
See
[here](https://www.electron.build/tutorials/release-using-channels.html)
for more information.
### Github Actions
#### Bump Version
This adds a new "Bump Version" workflow for managing versioning and
queuing new builds. When run, this workflow will bump the version,
create a new tag, and push the changes to the target branch. There is a
new dropdown when queuing the "Bump Version" workflow to select what
kind of version bump to perform. A bump must always be performed when
running a new build to ensure consistency.
I had to create a GitHub App to grant write permissions to our main
branch for the version bump commits. I've made a separate workflow file
to manage the version bump commits, which should help prevent tampering.
Thanks to using the GitHub API directly, I am able to make these commits
signed!
#### Build Helper
Build Helper is now triggered when new tags are created, rather than
being triggered automatically. This ensures we're always creating
artifacts from known checkpoints.
### Settings
Adds a new `autoupdate:channel` configuration to the settings file. If
unset, the default from the artifact will be used (should correspond to
the channel of the artifact when downloaded).
## Future Work
I want to add a release workflow that will automatically copy over the
corresponding version artifacts to the release bucket when a new GitHub
Release is created.
I also want to separate versions into separate subdirectories in the
release bucket so we can clean them up more-easily.
---------
Co-authored-by: wave-builder <builds@commandline.dev>
Co-authored-by: wave-builder[bot] <181805596+wave-builder[bot]@users.noreply.github.com>
2024-09-17 22:10:35 +02:00
|
|
|
ConfigKey_AutoUpdateChannel = "autoupdate:channel"
|
2024-08-28 22:21:08 +02:00
|
|
|
|
2024-12-17 01:04:07 +01:00
|
|
|
ConfigKey_MarkdownFontSize = "markdown:fontsize"
|
|
|
|
ConfigKey_MarkdownFixedFontSize = "markdown:fixedfontsize"
|
|
|
|
|
2024-10-07 23:08:57 +02:00
|
|
|
ConfigKey_PreviewShowHiddenFiles = "preview:showhiddenfiles"
|
|
|
|
|
2024-12-09 23:48:16 +01:00
|
|
|
ConfigKey_TabPreset = "tab:preset"
|
|
|
|
|
2024-08-28 22:21:08 +02:00
|
|
|
ConfigKey_WidgetClear = "widget:*"
|
|
|
|
ConfigKey_WidgetShowHelp = "widget:showhelp"
|
|
|
|
|
|
|
|
ConfigKey_WindowClear = "window:*"
|
|
|
|
ConfigKey_WindowTransparent = "window:transparent"
|
|
|
|
ConfigKey_WindowBlur = "window:blur"
|
|
|
|
ConfigKey_WindowOpacity = "window:opacity"
|
|
|
|
ConfigKey_WindowBgColor = "window:bgcolor"
|
|
|
|
ConfigKey_WindowReducedMotion = "window:reducedmotion"
|
2024-09-05 07:07:47 +02:00
|
|
|
ConfigKey_WindowTileGapSize = "window:tilegapsize"
|
2024-10-10 19:12:42 +02:00
|
|
|
ConfigKey_WindowShowMenuBar = "window:showmenubar"
|
2024-09-25 07:05:38 +02:00
|
|
|
ConfigKey_WindowNativeTitleBar = "window:nativetitlebar"
|
2024-09-25 19:08:15 +02:00
|
|
|
ConfigKey_WindowDisableHardwareAcceleration = "window:disablehardwareacceleration"
|
2024-10-17 23:34:02 +02:00
|
|
|
ConfigKey_WindowMaxTabCacheSize = "window:maxtabcachesize"
|
2024-11-18 23:41:09 +01:00
|
|
|
ConfigKey_WindowMagnifiedBlockOpacity = "window:magnifiedblockopacity"
|
|
|
|
ConfigKey_WindowMagnifiedBlockSize = "window:magnifiedblocksize"
|
|
|
|
ConfigKey_WindowMagnifiedBlockBlurPrimaryPx = "window:magnifiedblockblurprimarypx"
|
|
|
|
ConfigKey_WindowMagnifiedBlockBlurSecondaryPx = "window:magnifiedblockblursecondarypx"
|
2024-12-20 23:02:08 +01:00
|
|
|
ConfigKey_WindowConfirmClose = "window:confirmclose"
|
|
|
|
ConfigKey_WindowSaveLastWindow = "window:savelastwindow"
|
2024-08-28 22:21:08 +02:00
|
|
|
|
|
|
|
ConfigKey_TelemetryClear = "telemetry:*"
|
|
|
|
ConfigKey_TelemetryEnabled = "telemetry:enabled"
|
2024-10-11 00:50:46 +02:00
|
|
|
|
2024-10-11 02:23:27 +02:00
|
|
|
ConfigKey_ConnClear = "conn:*"
|
|
|
|
ConfigKey_ConnAskBeforeWshInstall = "conn:askbeforewshinstall"
|
2024-11-28 01:52:00 +01:00
|
|
|
ConfigKey_ConnWshEnabled = "conn:wshenabled"
|
2024-08-28 03:49:49 +02:00
|
|
|
)
|
2024-08-28 22:21:08 +02:00
|
|
|
|