Skip to content

Commit

Permalink
Appveyor Fixes (macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
petasis committed Jan 3, 2025
1 parent ed22f19 commit 262a4da
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ branches:

environment:
# these variables are common to all jobs
TCL_VERSION: tcl8.6
TCL_VERSION: 8.6

image:
# - Ubuntu
Expand Down Expand Up @@ -44,6 +44,11 @@ for:
only:
- image: Visual Studio 2022

init:
- cmd: echo "Init for Windows"
- cmd: set BUILD_FILENAME_TAG="-windows-tcl%TCL_VERSION%-%platform%"


install:
- cmd: set TKDND_HOME=%cd%
- cmd: set /p TKDND_VERSION=<VERSION
Expand Down Expand Up @@ -87,12 +92,12 @@ for:

after_build:
- cmd: echo %cd%
- cmd: cd runtime && 7z a -tzip tkdnd-%TKDND_VERSION%-windows-%TCL_VERSION%-%platform%.zip *
- cmd: cd runtime && 7z a -tzip tkdnd-%TKDND_VERSION%%BUILD_FILENAME_TAG%.zip *

artifacts:
- path: '\build\runtime\*.zip'
type: zip
name: tkdnd-%TKDND_VERSION%-windows-%TCL_VERSION%-%platform%.zip
name: tkdnd-%TKDND_VERSION%%BUILD_FILENAME_TAG%.zip

# https://github.com/forexample/github-binary-release
# git tag tkdnd-release-test-v2.9.2
Expand All @@ -110,7 +115,7 @@ for:
# release: $(APPVEYOR_REPO_TAG_NAME)-windows-v$(appveyor_build_version)
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'TkDND binaries'
artifact: tkdnd-%TKDND_VERSION%-windows-%TCL_VERSION%-%platform%.zip
artifact: tkdnd-%TKDND_VERSION%%BUILD_FILENAME_TAG%.zip
draft: false
prerelease: false
on:
Expand All @@ -135,9 +140,10 @@ for:
- if [[ "$PLATFORM" == "x64" ]]; then export PLATFORM_CPU_ARCH="x86_64"; fi
- export CONFIGURE_ARGS=""
- export TKDND_HOME=`pwd`
- export BUILD_FILENAME_TAG="-linux-${TCL_VERSION}-${PLATFORM_CPU_ARCH}"

install:
- export TCL_VERSION=`echo 'puts [info tclversion]' | tclsh`
- export BUILD_FILENAME_TAG="-linux-tcl${TCL_VERSION}-${PLATFORM_CPU_ARCH}"
- cd ${TKDND_HOME}
- export TKDND_VERSION=`cat ${TKDND_HOME}/VERSION`
- echo ${TKDND_VERSION}
Expand Down Expand Up @@ -203,11 +209,12 @@ for:
- if [[ "$PLATFORM" == "x64" ]]; then export PLATFORM_CPU_ARCH="x86_64"; fi
- export CONFIGURE_ARGS=""
- export TKDND_HOME=`pwd`
- export BUILD_FILENAME_TAG="-macOS-${TCL_VERSION}-${PLATFORM_CPU_ARCH}"

install:
- brew install gnu-tar
- brew install tcl-tk
- export TCL_VERSION=`echo 'puts [info tclversion]' | tclsh`
- export BUILD_FILENAME_TAG="-macOS-tcl${TCL_VERSION}-${PLATFORM_CPU_ARCH}"
- cd ${TKDND_HOME}
- export TKDND_VERSION=`cat ${TKDND_HOME}/VERSION`
- echo ${TKDND_VERSION}
Expand Down

0 comments on commit 262a4da

Please sign in to comment.