Skip to content

Commit ac09c58

Browse files
committed
Added unblocking instructions in windows and macos workflows.
1 parent d46425c commit ac09c58

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/release-macos.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
if [ -d fonts ]; then
7777
cp -r fonts asciiroids-${{ github.ref_name }}/
7878
fi
79+
echo "Unblock instructions:" > asciiroids-${{ github.ref_name }}/README.txt
80+
echo "=====================" >> asciiroids-${{ github.ref_name }}/README.txt
81+
echo "To tell the gatekeeper that this executable is fine" >> asciiroids-${{ github.ref_name }}/README.txt
82+
echo " you can unblock the executable with" >> asciiroids-${{ github.ref_name }}/README.txt
83+
echo " the following command:" >> asciiroids-${{ github.ref_name }}/README.txt
84+
echo " xattr -dr com.apple.quarantine asciiroids" >> asciiroids-${{ github.ref_name }}/README.txt
7985
# Create zip archive
8086
zip -r asciiroids-${{ github.ref_name }}-macos.zip asciiroids-${{ github.ref_name }}/
8187

.github/workflows/release-windows.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ jobs:
9090
if (Test-Path "fonts") {
9191
Copy-Item -Recurse "fonts" "asciiroids-${{ github.ref_name }}/"
9292
}
93+
echo "Unblock instructions:" > asciiroids-${{ github.ref_name }}/README.txt
94+
echo "=====================" >> asciiroids-${{ github.ref_name }}/README.txt
95+
echo "To tell Windows that this executable is fine" >> asciiroids-${{ github.ref_name }}/README.txt
96+
echo " you can unblock the executable by" >> asciiroids-${{ github.ref_name }}/README.txt
97+
echo " rightclicking the exe, then:" >> asciiroids-${{ github.ref_name }}/README.txt
98+
echo " Properties -> Unblock (check this)." >> asciiroids-${{ github.ref_name }}/README.txt
9399
# Create zip archive
94100
Compress-Archive -Path "asciiroids-${{ github.ref_name }}" -DestinationPath "asciiroids-${{ github.ref_name }}-windows.zip"
95101

0 commit comments

Comments
 (0)