summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2020-11-26 20:09:11 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2020-11-26 20:09:11 (GMT)
commit005227c53d0c7a0ed39198673b0938c88b1513d5 (patch)
tree9ba5dc422b8fb1cbbdaf3f825db63f65f13c0a5f
parent49ad442ac6b8cd1cbb23405c6098f7393fb6da53 (diff)
downloadtcl-005227c53d0c7a0ed39198673b0938c88b1513d5.zip
tcl-005227c53d0c7a0ed39198673b0938c88b1513d5.tar.gz
tcl-005227c53d0c7a0ed39198673b0938c88b1513d5.tar.bz2
Try to use a .dmg for macOS distribution
-rw-r--r--.github/workflows/onefiledist.yml21
1 files changed, 17 insertions, 4 deletions
diff --git a/.github/workflows/onefiledist.yml b/.github/workflows/onefiledist.yml
index 205673b..3f3b3e5 100644
--- a/.github/workflows/onefiledist.yml
+++ b/.github/workflows/onefiledist.yml
@@ -44,10 +44,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
+ - name: Checkout create-dmg
+ uses: actions/checkout@v2
+ with:
+ repository: create-dmg/create-dmg
+ ref: v1.0.8
- name: Prepare
run: |
touch generic/tclStubInit.c generic/tclOOStubInit.c
mkdir 1dist
+ echo "CREATE_DMG=$(cd create-dmg;pwd)/create-dmg" >> $GITHUB_ENV
working-directory: .
- name: Configure
run: ./configure --disable-symbols --disable-shared --enable-zipfs
@@ -58,15 +64,22 @@ jobs:
echo "TCL_ZIP=`pwd`/`echo libtcl*.zip`" >> $GITHUB_ENV
- name: Package
run: |
- cat ../unix/tclsh $TCL_ZIP > tclsh${TCL_VER}_unofficial
- chmod +x tclsh${TCL_VER}_unofficial
- tar -cf tclsh${TCL_VER}_unofficial.tar tclsh${TCL_VER}_unofficial
+ mkdir contents
+ cat ../unix/tclsh $TCL_ZIP > contents/tclsh${TCL_VER}_unofficial
+ chmod +x contents/tclsh${TCL_VER}_unofficial
+ $CREATE_DMG \
+ --volname "Tcl ${{ env.TCL_VER }} (unofficial)" \
+ --window-pos 200 120 \
+ --window-size 800 400 \
+ --app-drop-link 600 185 \
+ "Tcl-${{ env.TCL_VER }}-(unofficial).dmg" \
+ "contents/"
working-directory: 1dist
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Tclsh ${{ env.TCL_VER }} macOS single-file build (unofficial)
- path: 1dist/*.tar
+ path: 1dist/*.dmg
win:
name: Windows
runs-on: windows-latest