Skip to content

Commit

Permalink
Follow core22 migration instructions for syntax better this time
Browse files Browse the repository at this point in the history
Should be fixed now. 

```
override-stage: |
    snapcraftctl stage
```
translates to
```
override-stage: |
    craftctl default
```

And  
Setting a version
```
override-<step>: |
    snapcraftctl set-version 1.0.0
```
translates to
```
override-<step>: |
    craftctl set version=1.0.0
```
  • Loading branch information
luzpaz authored Aug 16, 2023
1 parent 4903524 commit 37fa400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ parts:
cp "$kde_sdk_dir/etc/xdg/qtchooser/default.conf" "/etc/xdg/qtchooser/default.conf"
mkdir -p /workspace/usr/bin
ln -s /usr/bin/shiboken2 /workspace/usr/bin/shiboken2
craftctl build
craftctl default
sed -i -E \
"s|^Icon=(.*)|Icon=\${SNAP}/usr/share/icons/hicolor/scalable/apps/org.freecad.FreeCAD.svg|g" \
$CRAFT_PART_INSTALL/usr/share/applications/org.freecad.FreeCAD.desktop
Expand All @@ -269,7 +269,7 @@ parts:
version_minor=$(grep "set(PACKAGE_VERSION_MINOR" CMakeLists.txt | tr -d '()"' | cut -d" " -f2)
git_hash=$(git rev-parse --short=8 HEAD)
version="${version_major}.${version_minor}-g$git_hash"
craftctl set-version "$version"
craftctl set version="$version"
python-packages:
plugin: python
Expand Down

0 comments on commit 37fa400

Please sign in to comment.