From c777e273b3598b99bc982f50ce3e1a063f074b58 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Wed, 26 Apr 2017 00:36:20 -0400
Subject: [PATCH] add osx 10.8 build to gitlab CI

---
 .gitlab-ci.yml            | 14 ++++++++++++++
 l2ork_addons/tar_em_up.sh |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8bc7a904f..e734f8236 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -106,3 +106,17 @@ osx_amd64_dmg:
      expire_in: 1 day
      paths:
        - Pd*.dmg
+
+osx_10.8_amd64_dmg:
+   tags:
+     - osx
+     - v10.8
+     - dmg
+   script:
+     - echo `pwd`
+     - cd l2ork_addons
+     - osx_version=10.8 ./tar_em_up.sh -X
+   artifacts:
+     expire_in: 1 day
+     paths:
+       - Pd*.dmg
diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh
index 730c68a95..2d88f56a8 100755
--- a/l2ork_addons/tar_em_up.sh
+++ b/l2ork_addons/tar_em_up.sh
@@ -122,7 +122,7 @@ if [ ! -d "../pd/nw/nw" ]; then
 		ext="tar.gz"
 	fi
 
-	if [[ $os == "win" ]]; then
+	if [[ $os == "win" || $osx_version == "10.8" ]]; then
 		# We need the lts version to be able to run on XP. For
                 # simplicity we use that same version for 64 bit Windows, too
 		nwjs_version="v0.14.7"
-- 
GitLab