-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update positron cli and linux package info with positron version outp…
…ut (#5072) ## Description - addresses #1373 - updates `positron --version`, `positron --help`, `positron-server --version`, `positron-server --help` to output Positron version information - updates Linux package version info to use Positron version - I updated our snapcraft.yml, but we don't publish on Snap yet, so it's just a speculative change for now ## QA Notes Please test this functionality in each of our builds across all platforms! I've tested this with Desktop Mac and REH-Web on Ubuntu. Note that the Command Prompt command to install `positron` in PATH is not available on every operating system. On some platforms, it seems that `positron` is automatically installed in the PATH upon installation. ### Check `--version` Sample Output: ``` Positron: 2024.11.0 build 70 Positron SHA: 5182905 Code OSS: 1.93.0 Arch: arm64 ``` #### Desktop Build 1. Use the Command Prompt to `Shell Command: Install 'positron' command in PATH` (`workbench.action.installCommandLine`) 2. Run `positron --version` in a Terminal 3. Confirm the output contains the expected information and format #### REH or REH Web Build 1. Locate the `positron-server` executable, which will be in the `bin` directory of the REH or REH Web binary 2. Run `positron-server --version` in a Terminal 3. Confirm the output contains the expected information and format ### Check `--help` Sample Output: ``` Positron 2024.11.0 <REST_OF_HELP> ``` #### Desktop Build 1. Use the Command Prompt to `Shell Command: Install 'positron' command in PATH` (`workbench.action.installCommandLine`) 2. Run `positron --help` in a Terminal 3. The first line of output should show `Positron <POSITRON_VERSION>` #### REH or REH Web Build 1. Locate the `positron-server` executable, which will be in the `bin` directory of REH or REH Web binary 2. Run `positron-server --help` in a Terminal 3. The first line of output should show `Positron <POSITRON_VERSION>` ### Check package info #### DEB 1. Run `dpkg --info <POSITRON_BINARY>.deb` 2. Confirm the Version field in the output shows `<POSITRON_VERSION> build <BUILD_NUMBER>` Sample Output: ``` <SOME_INITIAL_INFO> Package: positron Version: 2024.11.0 build 16 <REST_OF_INFO> ``` #### RPM 1. Run `rpm -qi <POSITRON_BINARY>.rpm` 2. Confirm the Version field in the output shows `<POSITRON_VERSION> build <BUILD_NUMBER>` Sample Output: ``` Name : positron Version : 2024.11.0 build 16 <REST_OF_INFO> ```
- Loading branch information
1 parent
73cc8d5
commit 9a8f07a
Showing
16 changed files
with
163 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
@echo off | ||
setlocal | ||
set ROOT_DIR=%~dp0..\.. | ||
start "Open Browser" /B "%ROOT_DIR%\node.exe" "%ROOT_DIR%\out\server-cli.js" "@@APPNAME@@" "@@VERSION@@" "@@COMMIT@@" "@@APPNAME@@.cmd" "--openExternal" "%*" | ||
@REM --- Start Positron --- | ||
start "Open Browser" /B "%ROOT_DIR%\node.exe" "%ROOT_DIR%\out\server-cli.js" "@@APPNAME@@" "@@POSITRONVERSION@@" "@@BUILDNUMBER@@" "@@VERSION@@" "@@COMMIT@@" "@@APPNAME@@.cmd" "--openExternal" "%*" | ||
@REM --- End Positron --- | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
@echo off | ||
setlocal | ||
set ROOT_DIR=%~dp0..\.. | ||
call "%ROOT_DIR%\node.exe" "%ROOT_DIR%\out\server-cli.js" "@@APPNAME@@" "@@VERSION@@" "@@COMMIT@@" "@@APPNAME@@.cmd" %* | ||
@REM --- Start Positron --- | ||
call "%ROOT_DIR%\node.exe" "%ROOT_DIR%\out\server-cli.js" "@@APPNAME@@" "@@POSITRONVERSION@@" "@@BUILDNUMBER@@" "@@VERSION@@" "@@COMMIT@@" "@@APPNAME@@.cmd" %* | ||
@REM --- End Positron --- | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters