Skip to content

Commit

Permalink
ci(vscode): fix version number in asset file
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Mar 11, 2024
1 parent 24db8e6 commit 02994ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/ci/common.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type Component = { Name: string; Path: string }

let TIMEOUT_EXIT_CODES = {| TIMED_OUT = 124; KILLED = 137 |}

let versionNumber (version: string) = version.Replace("v", "")

let bashCmd (cmd: string) =
$"""bash -c "{cmd.Replace("\"", "\\\"")}" """

Expand Down
2 changes: 1 addition & 1 deletion src/intellij/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open Common
let distPath: string = "intellij/contextive/build/distributions"

let intelliJAssetFileName (ctx: Internal.StageContext) =
$"""contextive-{ctx.GetCmdArg(args.release).Replace("v", "")}-signed.zip"""
$"""contextive-{versionNumber (ctx.GetCmdArg(args.release))}-signed.zip"""

let intelliJAssetLabel (ctx: Internal.StageContext) =
$"""Contextive IntelliJ Plugin {ctx.GetCmdArg(args.release)}"""
Expand Down
2 changes: 1 addition & 1 deletion src/vscode/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open Fun.Build
open Common

let vsCodeAssetFileName (ctx: Internal.StageContext) =
$"contextive-{ctx.GetCmdArg(args.vscePlatform)}-{ctx.GetCmdArg(args.release)}.vsix"
$"""contextive-{ctx.GetCmdArg(args.vscePlatform)}-{versionNumber (ctx.GetCmdArg(args.release))}.vsix"""

let vsCodeAssetLabel (ctx: Internal.StageContext) =
$"Contextive VsCode Extension {ctx.GetCmdArg(args.release)} ({ctx.GetCmdArg(args.vscePlatform)})"
Expand Down

0 comments on commit 02994ee

Please sign in to comment.