diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2020-11-27 18:07:05 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2020-11-27 18:07:05 (GMT) |
commit | 0cb78052e48dae9b266b3a8291a1d5c65b1e2487 (patch) | |
tree | 6999d8ffc3295941fd1e03128df04a985baebbca /.github | |
parent | 8c7898b5d20bdb61b808f3da8856859ebe6deec7 (diff) | |
download | tcl-0cb78052e48dae9b266b3a8291a1d5c65b1e2487.zip tcl-0cb78052e48dae9b266b3a8291a1d5c65b1e2487.tar.gz tcl-0cb78052e48dae9b266b3a8291a1d5c65b1e2487.tar.bz2 |
That's the best we can do without entering the morass that is signing/notarization on macOS; Windows now uses the right version IDs
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/onefiledist.yml | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/.github/workflows/onefiledist.yml b/.github/workflows/onefiledist.yml index f077861..0fb6ba5 100644 --- a/.github/workflows/onefiledist.yml +++ b/.github/workflows/onefiledist.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Binaries on: [push] jobs: linux: @@ -27,7 +27,7 @@ jobs: working-directory: unix - name: Package run: | - cat ../unix/tclsh $TCL_ZIP > tclsh${TCL_VER}_unofficial + cat ../unix/tclsh $TCL_ZIP > tclsh${TCL_PATCHLEVEL}_unofficial chmod +x tclsh${TCL_PATCHLEVEL}_unofficial tar -cf tclsh${TCL_PATCHLEVEL}_unofficial.tar tclsh${TCL_PATCHLEVEL}_unofficial working-directory: 1dist @@ -50,11 +50,9 @@ jobs: with: repository: create-dmg/create-dmg ref: v1.0.8 + path: create-dmg - name: Prepare run: | - echo "::group::Listing configuration" - find . -ls || true - echo "::endgroup::" mkdir 1dist touch generic/tclStubInit.c generic/tclOOStubInit.c || true echo "VER_PATH=$(cd tools; pwd)/addVerToFile.tcl" >> $GITHUB_ENV @@ -74,12 +72,21 @@ jobs: mkdir contents cat $TCL_BIN $TCL_ZIP > contents/tclsh${TCL_PATCHLEVEL}_unofficial chmod +x contents/tclsh${TCL_PATCHLEVEL}_unofficial + cat > contents/README.txt <<EOF + This is a single-file executable developer preview of Tcl $TCL_PATCHLEVEL + + It is not intended as an official release at all, so it is unsigned and unnotarized. + Use strictly at your own risk. + + To run it, you need to copy the executable out and run: + xattr -d com.apple.quarantine tclsh${TCL_PATCHLEVEL}_unofficial + to mark the executable as runnable on your machine. + EOF $CREATE_DMG \ - --volname "Tcl ${{ env.TCL_PATCHLEVEL }} (unofficial)" \ + --volname "Tcl $TCL_PATCHLEVEL (unofficial)" \ --window-pos 200 120 \ --window-size 800 400 \ - --app-drop-link 600 185 \ - "Tcl-${{ env.TCL_PATCHLEVEL }}-(unofficial).dmg" \ + "Tcl-$TCL_PATCHLEVEL-(unofficial).dmg" \ "contents/" working-directory: 1dist - name: Upload @@ -96,8 +103,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install MSYS2 and Make - run: choco install msys2 make + - name: Install MSYS2 + uses: msys2/setup-msys2@v2 - name: Prepare run: | touch generic/tclStubInit.c generic/tclOOStubInit.c @@ -110,12 +117,19 @@ jobs: - name: Build run: | make binaries libraries tclzipfile - make shell SCRIPT="$VER_PATH $GITHUB_ENV" echo "TCL_ZIP=`pwd`/`echo libtcl*.zip`" >> $GITHUB_ENV working-directory: win - name: Package run: | - cat ../win/tclsh*.exe $TCL_ZIP > tclsh${TCL_PATCHLEVEL}_unofficial.exe + cat ../win/tclsh*.exe $TCL_ZIP > combined.exe + working-directory: 1dist + - name: Get Exact Version + run: | + ./combined.exe $VER_PATH $GITHUB_ENV + working-directory: 1dist + - name: Set Executable Name + run: | + mv combined.exe tclsh${TCL_PATCHLEVEL}_unofficial.exe working-directory: 1dist - name: Upload uses: actions/upload-artifact@v2 |