Skip to content

Commit 262a4da

Browse files
committed
Appveyor Fixes (macOS)
1 parent ed22f19 commit 262a4da

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.appveyor.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ branches:
77

88
environment:
99
# these variables are common to all jobs
10-
TCL_VERSION: tcl8.6
10+
TCL_VERSION: 8.6
1111

1212
image:
1313
# - Ubuntu
@@ -44,6 +44,11 @@ for:
4444
only:
4545
- image: Visual Studio 2022
4646

47+
init:
48+
- cmd: echo "Init for Windows"
49+
- cmd: set BUILD_FILENAME_TAG="-windows-tcl%TCL_VERSION%-%platform%"
50+
51+
4752
install:
4853
- cmd: set TKDND_HOME=%cd%
4954
- cmd: set /p TKDND_VERSION=<VERSION
@@ -87,12 +92,12 @@ for:
8792

8893
after_build:
8994
- cmd: echo %cd%
90-
- cmd: cd runtime && 7z a -tzip tkdnd-%TKDND_VERSION%-windows-%TCL_VERSION%-%platform%.zip *
95+
- cmd: cd runtime && 7z a -tzip tkdnd-%TKDND_VERSION%%BUILD_FILENAME_TAG%.zip *
9196

9297
artifacts:
9398
- path: '\build\runtime\*.zip'
9499
type: zip
95-
name: tkdnd-%TKDND_VERSION%-windows-%TCL_VERSION%-%platform%.zip
100+
name: tkdnd-%TKDND_VERSION%%BUILD_FILENAME_TAG%.zip
96101

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

140144
install:
145+
- export TCL_VERSION=`echo 'puts [info tclversion]' | tclsh`
146+
- export BUILD_FILENAME_TAG="-linux-tcl${TCL_VERSION}-${PLATFORM_CPU_ARCH}"
141147
- cd ${TKDND_HOME}
142148
- export TKDND_VERSION=`cat ${TKDND_HOME}/VERSION`
143149
- echo ${TKDND_VERSION}
@@ -203,11 +209,12 @@ for:
203209
- if [[ "$PLATFORM" == "x64" ]]; then export PLATFORM_CPU_ARCH="x86_64"; fi
204210
- export CONFIGURE_ARGS=""
205211
- export TKDND_HOME=`pwd`
206-
- export BUILD_FILENAME_TAG="-macOS-${TCL_VERSION}-${PLATFORM_CPU_ARCH}"
207212

208213
install:
209214
- brew install gnu-tar
210215
- brew install tcl-tk
216+
- export TCL_VERSION=`echo 'puts [info tclversion]' | tclsh`
217+
- export BUILD_FILENAME_TAG="-macOS-tcl${TCL_VERSION}-${PLATFORM_CPU_ARCH}"
211218
- cd ${TKDND_HOME}
212219
- export TKDND_VERSION=`cat ${TKDND_HOME}/VERSION`
213220
- echo ${TKDND_VERSION}

0 commit comments

Comments
 (0)