Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf93305fdd | ||
|
|
1eb72e865b | ||
|
|
e0f86eec29 | ||
|
|
21d59d891c | ||
|
|
a07a5d638d | ||
|
|
b02df94744 | ||
|
|
fe0230b3d5 | ||
|
|
885fa3fee8 |
@@ -43,6 +43,16 @@ jobs:
|
||||
export CCOPTFLAG="-O0"
|
||||
jam -q -d2 -fJambase -j1 -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install
|
||||
|
||||
- name: Ad-hoc Sign & Verify Binaries
|
||||
run: |
|
||||
for f in bin/*; do
|
||||
if [ -f "$f" ] && file "$f" | grep -q "Mach-O"; then
|
||||
echo "Ad-hoc signing $f"
|
||||
codesign -f -s - "$f"
|
||||
codesign -dvv "$f"
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Smoke Tests
|
||||
env:
|
||||
ARGYLL_NOT_INTERACTIVE: "1"
|
||||
@@ -116,6 +126,7 @@ jobs:
|
||||
echo "Creating universal binary with lipo: $bin_name"
|
||||
lipo -create "raw-bin-x86_64/$bin_name" "raw-bin-arm64/$bin_name" -output "bin/$bin_name"
|
||||
chmod +x "bin/$bin_name"
|
||||
codesign -f -s - "bin/$bin_name"
|
||||
else
|
||||
echo "Non Mach-O file, copying directly: $bin_name"
|
||||
cp "$file" "bin/$bin_name"
|
||||
@@ -123,6 +134,9 @@ jobs:
|
||||
else
|
||||
echo "Warning: $bin_name not found in raw-bin-x86_64, copying arm64 version"
|
||||
cp "$file" "bin/$bin_name"
|
||||
if file "bin/$bin_name" | grep -q "Mach-O"; then
|
||||
codesign -f -s - "bin/$bin_name"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
for file in raw-bin-x86_64/*; do
|
||||
@@ -130,18 +144,22 @@ jobs:
|
||||
if [ ! -f "bin/$bin_name" ]; then
|
||||
echo "Warning: $bin_name only found in raw-bin-x86_64, copying x86_64 version"
|
||||
cp "$file" "bin/$bin_name"
|
||||
if file "bin/$bin_name" | grep -q "Mach-O"; then
|
||||
codesign -f -s - "bin/$bin_name"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Verify Architecture & Smoke Tests
|
||||
- name: Verify Architecture & Code Signatures
|
||||
env:
|
||||
ARGYLL_NOT_INTERACTIVE: "1"
|
||||
ARGYLL_EXCLUDE_SERIAL_SCAN: "1"
|
||||
run: |
|
||||
echo "=== Binary Architecture Verification ==="
|
||||
echo "=== Binary Architecture & Signature Verification ==="
|
||||
for file in bin/*; do
|
||||
if [ -f "$file" ]; then
|
||||
if [ -f "$file" ] && file "$file" | grep -q "Mach-O"; then
|
||||
file "$file"
|
||||
codesign -dvv "$file"
|
||||
fi
|
||||
done
|
||||
echo "=== Smoke Tests ==="
|
||||
|
||||
+12
-1
@@ -7,7 +7,7 @@ echo "Script to invoke Jam and then package the binary release."
|
||||
PRODUCT=Argyll
|
||||
|
||||
# Set the environment string VERSION from the #define, ie 1.0.0
|
||||
VERSION=`grep ARGYLL_VERSION_STR h/aconfig.h | head -1 | sed 's/# define ARGYLL_VERSION_STR //' | sed 's/"//g'`
|
||||
VERSION=`grep ARGYLL_VERSION_STR h/aconfig.h | head -1 | sed 's/# define ARGYLL_VERSION_STR //' | sed 's/\"//g'`
|
||||
|
||||
# Typical environment variables:
|
||||
# (NOTE some systems don't export these ENV vars. by default !!!)
|
||||
@@ -173,6 +173,17 @@ if [ X$NO_BUILD = "X" ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Apply ad-hoc code signatures to macOS Mach-O binaries before staging
|
||||
if [ "${OSTYPE#*darwin*}" != "$OSTYPE" ] ; then
|
||||
echo "=== Applying ad-hoc code signatures to macOS Mach-O binaries ==="
|
||||
for f in bin/* ; do
|
||||
if [ -f "$f" ] && file "$f" | grep -q "Mach-O" ; then
|
||||
echo "Signing $f..."
|
||||
codesign -f -s - "$f" || true
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
rm -rf $TOPDIR
|
||||
mkdir $TOPDIR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user