Skip to content

Commit

Permalink
[GHA MAC] Print processed file only if opened
Browse files Browse the repository at this point in the history
ci release
  • Loading branch information
RoiArthurB committed Apr 21, 2022
1 parent b499af3 commit 27653ff
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions travis/mac-sign.sh
Expand Up @@ -10,29 +10,34 @@ function signInJar(){

sed -i -e '/META-INF/d' filelist.txt

# Reverse list to prevent concurrency signature submition per architecture
if [[ $isWithJDK ]]; then
tail -r filelist.txt > reverse-filelist.txt
rm filelist.txt
mv reverse-filelist.txt filelist.txt
fi
if [[ -s "filelist.txt" ]]; then
echo "$1"

# Reverse list to prevent concurrency signature submition per architecture
if [[ $isWithJDK ]]; then
tail -r filelist.txt > reverse-filelist.txt
rm filelist.txt
mv reverse-filelist.txt filelist.txt
fi

while read f
do
jar xf "$1" "$f"
while read f
do
jar xf "$1" "$f"

if [[ "$f" =~ .*".jar" ]]; then
mkdir "_sub" && cd "_sub"
if [[ "$f" =~ .*".jar" ]]; then
mkdir "_sub" && cd "_sub"

signInJar "../$f"
cd ".." && rm -fr "_sub"
else
codesign --timestamp --force -s "$MACOS_DEV_ID" -v "$f"
echo "---"
fi
signInJar "../$f"
cd ".." && rm -fr "_sub"
else
codesign --timestamp --force -s "$MACOS_DEV_ID" -v "$f"
echo "---"
fi

jar uf "$1" "$f"
done < filelist.txt
jar uf "$1" "$f"
done < filelist.txt

fi
}

find ./ -name "*jar" > jarlist.txt
Expand All @@ -48,10 +53,7 @@ fi
while read j
do
signInJar "$j"

find . -not -wholename "*Gama.app*" -delete

echo "xxx"
done < jarlist.txt

# Sign single lib files
Expand Down

0 comments on commit 27653ff

Please sign in to comment.