Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
chg - Updated pack scripts for version detection
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Apr 27, 2024
1 parent 49087fb commit 3e55037
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/pack.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off

for /f "tokens=* USEBACKQ" %%f in (`type version`) do set version=%%f
for /f "tokens=*" %%g in ('findstr "<Version>" ..\Directory.Build.props') do (set MIDVER=%%g)
for /f "tokens=1 delims=<" %%a in ("%MIDVER:~9%") do (set version=%%a)
set releaseconfig=%1
if "%releaseconfig%" == "" set releaseconfig=Release

Expand Down
2 changes: 1 addition & 1 deletion tools/pack.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# This script builds and packs the artifacts. Use when you have MSBuild installed.
version=$(cat version)
version=$(grep "<Version>" ../Directory.Build.props | cut -d "<" -f 2 | cut -d ">" -f 2)
releaseconf=$1
if [ -z $releaseconf ]; then
releaseconf=Release
Expand Down

0 comments on commit 3e55037

Please sign in to comment.