Skip to content

Commit

Permalink
Fix snap build
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Jan 23, 2024
1 parent a7b2edb commit de96810
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- name: setup build tag
run: |
sed -i 's|source-branch: LinkDaily|source-tag: ${{ inputs.ref }}|' snap/snapcraft.yaml
case ${{ inputs.ref }} in
*stable)
sed -i 's|grade: devel|grade: stable|' snap/snapcraft.yaml
esac
- name: git permission workaround
run: |
Expand Down Expand Up @@ -58,15 +62,15 @@ jobs:
echo "RELEASE_NAME=$tag" >> $GITHUB_ENV
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
release=Stable
tag=${tag%edge}
tag=${tag%stable}
;;
*)
echo "Invalid tag"
exit 1
esac
asset=FreeCAD-Link-$release-Snap-x86_64
name=$asset-$tag.snap
ln -s freecad-realthunder*.snap $name
ln -s freecad*.snap $name
shasum -a 256 $name > $name-SHA256.txt
echo "RELEASE_ASSETS=$asset" >> $GITHUB_ENV
Expand Down Expand Up @@ -101,4 +105,4 @@ jobs:
elif ${{ endsWith(inputs.ref, 'stable') }}; then
release_to="stable"
fi
snapcraft upload --release=${release_to} freecad-realthunder*.snap
snapcraft upload --release=${release_to} freecad*.snap
4 changes: 3 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: freecad
name: freecad-realthunder
base: core22
adopt-info: freecad
summary: An open source parametric 3D CAD modeler (realthunder's version)
issues: https://github.com/realthunder/FreeCAD/issues
website: https://github.com/realthunder/FreeCAD
description: |
FreeCAD is a parametric 3D modeler. Parametric modeling
allows you to easily modify your design by going back into
Expand Down

0 comments on commit de96810

Please sign in to comment.