Skip to content

Commit

Permalink
Updated builds 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
hipersayanX committed Aug 23, 2024
1 parent 0e1fa99 commit 5c5d37d
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 10 deletions.
18 changes: 18 additions & 0 deletions ports/ci/linux-mingw/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@
#
# Web-Site: http://webcamoid.github.io/

if [ ! -z "${GITHUB_SHA}" ]; then
export GIT_COMMIT_HASH="${GITHUB_SHA}"
elif [ ! -z "${CIRRUS_CHANGE_IN_REPO}" ]; then
export GIT_COMMIT_HASH="${CIRRUS_CHANGE_IN_REPO}"
fi

export GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)

if [ -z "${GIT_BRANCH_NAME}" ]; then
if [ ! -z "${GITHUB_REF_NAME}" ]; then
export GIT_BRANCH_NAME="${GITHUB_REF_NAME}"
elif [ ! -z "${CIRRUS_BRANCH}" ]; then
export GIT_BRANCH_NAME="${CIRRUS_BRANCH}"
else
export GIT_BRANCH_NAME=master
fi
fi

git clone https://github.com/webcamoid/DeployTools.git

cat << EOF > package_info_strip.conf
Expand Down
27 changes: 22 additions & 5 deletions ports/ci/mac/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,31 @@
#
# Web-Site: http://webcamoid.github.io/

SOURCES_DIR=${PWD}
if [ ! -z "${GITHUB_SHA}" ]; then
export GIT_COMMIT_HASH="${GITHUB_SHA}"
elif [ ! -z "${CIRRUS_CHANGE_IN_REPO}" ]; then
export GIT_COMMIT_HASH="${CIRRUS_CHANGE_IN_REPO}"
fi

export GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)

if [ -z "${GIT_BRANCH_NAME}" ]; then
if [ ! -z "${GITHUB_REF_NAME}" ]; then
export GIT_BRANCH_NAME="${GITHUB_REF_NAME}"
elif [ ! -z "${CIRRUS_BRANCH}" ]; then
export GIT_BRANCH_NAME="${CIRRUS_BRANCH}"
else
export GIT_BRANCH_NAME=master
fi
fi


git clone https://github.com/webcamoid/DeployTools.git

export INSTALL_PREFIX="${SOURCES_DIR}/package-data"
export PACKAGES_DIR="${SOURCES_DIR}/packages/mac"
export PYTHONPATH="${SOURCES_DIR}/DeployTools"
export BUILD_PATH="${SOURCES_DIR}/build"
export INSTALL_PREFIX="${PWD}/package-data"
export PACKAGES_DIR="${PWD}/packages/mac"
export PYTHONPATH="${PWD}/DeployTools"
export BUILD_PATH="${PWD}/build"
python3 ./DeployTools/deploy.py \
-d "${INSTALL_PREFIX}" \
-c "${BUILD_PATH}/package_info.conf" \
Expand Down
18 changes: 18 additions & 0 deletions ports/ci/windows-msys/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@
#
# Web-Site: http://webcamoid.github.io/

if [ ! -z "${GITHUB_SHA}" ]; then
export GIT_COMMIT_HASH="${GITHUB_SHA}"
elif [ ! -z "${CIRRUS_CHANGE_IN_REPO}" ]; then
export GIT_COMMIT_HASH="${CIRRUS_CHANGE_IN_REPO}"
fi

export GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)

if [ -z "${GIT_BRANCH_NAME}" ]; then
if [ ! -z "${GITHUB_REF_NAME}" ]; then
export GIT_BRANCH_NAME="${GITHUB_REF_NAME}"
elif [ ! -z "${CIRRUS_BRANCH}" ]; then
export GIT_BRANCH_NAME="${CIRRUS_BRANCH}"
else
export GIT_BRANCH_NAME=master
fi
fi

git clone https://github.com/webcamoid/DeployTools.git

export PATH="/c/Program Files (x86)/NSIS:/c/msys64/mingw64/bin:/mingw64/bin:${PATH}"
Expand Down
16 changes: 11 additions & 5 deletions ports/ci/windows-vs/deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ REM along with akvirtualcamera. If not, see <http://www.gnu.org/licenses/>.
REM
REM Web-Site: http://webcamoid.github.io/

set SOURCES_DIR=%cd%
set INSTALL_PREFIX=%SOURCES_DIR%\package-data
set PACKAGES_DIR=%SOURCES_DIR%\packages\windows
if not "%GITHUB_SHA%" == "" set GIT_COMMIT_HASH="%GITHUB_SHA%"
if not "%CIRRUS_CHANGE_IN_REPO%" == "" set GIT_COMMIT_HASH="%CIRRUS_CHANGE_IN_REPO%"

if not "%GITHUB_REF_NAME%" == "" set GIT_BRANCH_NAME="%GITHUB_REF_NAME%"
if not "%CIRRUS_BRANCH%" == "" set GIT_BRANCH_NAME="%CIRRUS_BRANCH%"
if not "%GIT_BRANCH_NAME%" == "" set GIT_BRANCH_NAME=master

git clone https://github.com/webcamoid/DeployTools.git

set PYTHONPATH=%cd%\DeployTools
set BUILD_PATH=%cd%\build-x64
set INSTALL_PREFIX=%CD%\package-data
set PACKAGES_DIR=%CD%\packages\windows
set BUILD_PATH=%CD%\build-x64
set PYTHONPATH=%CD%\DeployTools

python DeployTools\deploy.py ^
-d "%INSTALL_PREFIX%" ^
-c "%BUILD_PATH%\package_info.conf" ^
Expand Down

0 comments on commit 5c5d37d

Please sign in to comment.