Skip to content

Commit 9a15196

Browse files
author
Chris Maunder
committed
Merge branch 'v2.9.0' of https://github.com/codeproject/CodeProject.AI-Server into v2.9.0
2 parents 3fd4983 + f646d90 commit 9a15196

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

.github/workflows/package-ObjectDetectionYOLOv5-6.2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
# branches:
66
# - main
77
workflow_dispatch: # Allows manual run
8-
inputs: {} # You can define inputs if needed
8+
inputs: {} # No inputs at this point
99

1010
jobs:
1111
package_and_upload:

devops/build/create_packages.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ externalModulesDir="CodeProject.AI-Modules"
6161
serverDir="CodeProject.AI-Server"
6262

6363
# Location of the utils script in the main CodeProject.AI server repo
64-
utilsScriptGitHubUrl='https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/src/scripts/utils.sh'
64+
utilsScriptGitHubUrl='https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/src/scripts'
6565

6666
# Override some values via parameters ::::::::::::::::::::::::::::::::::::::::::
6767

@@ -114,10 +114,6 @@ popd >/dev/null
114114
sdkPath="${rootDirPath}/${srcDirName}/${sdkDir}"
115115
utilsScriptsDirPath="${rootDirPath}/src/scripts"
116116

117-
if [ "${githubAction}" == true ]; then
118-
utilsScriptsDirPath="${utilsScriptGitHubUrl}"
119-
fi
120-
121117
# Standard output may be used as a return value in the functions. Expose stream
122118
# 3 so we can do 'echo "Hello, World!" >&3' within these functions for debugging
123119
# without interfering with return values.
@@ -144,13 +140,15 @@ function correctLineEndings () {
144140
fi
145141
}
146142

147-
if [ "${githubAction}" != true ]; then
143+
if [ "${githubAction}" == true ]; then
144+
curl -sL ${utilsScriptGitHubUrl}/utils.sh -o utils.sh
145+
source utils.sh
146+
rm utils.sh
147+
else
148148
correctLineEndings ${utilsScriptsDirPath}/utils.sh
149+
source ${utilsScriptsDirPath}/utils.sh
149150
fi
150151

151-
# "platform" will be set by this script
152-
source ${utilsScriptsDirPath}/utils.sh
153-
154152
# Helper method ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
155153

156154
function doModulePackage () {
@@ -259,7 +257,7 @@ success='true'
259257

260258
if [ "${singleModule}" == true ]; then
261259

262-
packageModuleDirPath=$(pwd))
260+
packageModuleDirPath=$(pwd)
263261
packageModuleDirName="$(basename $(pwd))"
264262
packageModuleId=$(getModuleIdFromModuleSettings "${packageModuleDirPath}/modulesettings.json")
265263

modules/ObjectDetectionYOLOv5-6.2/package.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@Echo off
2-
REM Module Packaging script. To be called from create_packages.bat
2+
REM Module Packaging script. To be called from ..\..\devops\build\create_packages.bat
33

44
set moduleId=%~1
55
set version=%~2

modules/ObjectDetectionYOLOv5-6.2/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Module Packaging script. To be called from create_packages.sh
3+
# Module Packaging script. To be called by: bash ../../devops/build/create_packages.sh
44

55
moduleId=$1
66
version=$2

modules/ObjectDetectionYOLOv5Net/package.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@Echo off
2-
REM Module Packaging script. To be called from create_packages.bat
2+
REM Module Packaging script. To be called from ..\..\devops\build\create_packages.bat
33

44
REM The executable for this module is downloaded from S3. There are multiple forms
55
REM of the executable, corresponding to different hardware, and the appropriate

modules/ObjectDetectionYOLOv5Net/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Module Packaging script. To be called from create_packages.sh
3+
# Module Packaging script. To be called by: bash ../../devops/build/create_packages.sh
44

55
# The executable for this module is downloaded from S3. There are multiple forms
66
# of the executable, corresponding to different hardware, and the appropriate

0 commit comments

Comments
 (0)