Skip to content

Commit a808db0

Browse files
Tweaks to ensure Arch Linux package is copied to expected location.
1 parent c95c9ad commit a808db0

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎build/scripts/package.linux.sh‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ build_arch_package() {
116116
ln -rsf resources/aur/opt/sourcegit/sourcegit resources/aur/usr/bin
117117
cp -r resources/_common/applications resources/aur/usr/share
118118
cp -r resources/_common/icons resources/aur/usr/share
119-
chown -R pkguser:pkguser ./
120119

120+
chown -R pkguser:pkguser ./
121121

122122
cd "resources/aur/" || exit 1
123123

@@ -127,11 +127,15 @@ build_arch_package() {
127127
makepkg --nodeps
128128
fi
129129

130-
cd ../../ # return to previous path
131-
132-
if [[ -f "resources/aur/sourcegit-bin-${VERSION}-1-$(uname -m).pkg.tar.zst" ]]; then
133-
mv resources/aur/sourcegit-bin*.pkg.tar.zst .
130+
if find . -maxdepth 1 -type f \( -name "sourcegit*.pkg.tar.zst" -o -name "sourcegit*.pkg.tar.xz" \) -quit | grep -q .; then
131+
echo "Copying Arch package for artifact upload"
132+
cp sourcegit*.pkg.tar.zst ../../
133+
else
134+
echo "Arch package file not found."
135+
echo "$(ls -alh .)"
134136
fi
137+
138+
cd ../../ # return to previous path
135139
else
136140
echo -e "\033[0;31 ⚠ makepkg not found!\033\[0m"
137141
fi

0 commit comments

Comments
 (0)