File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,13 +204,14 @@ jobs:
204204 - name : Replace placeholders
205205 shell : bash
206206 run : |
207- sed -i -e 's/REPLACE_TAG/Sniffnet_LinuxDEB_${{ matrix.arch }}.deb/g' resources/packaging/linux/AppImage/sniffnet.yml
207+ VERSION=$(grep -m1 "^version" Cargo.toml | cut -d'"' -f2)
208+ mv /target/Sniffnet_LinuxDEB_${{ matrix.arch }}.deb /target/sniffnet_${VERSION}_${{ matrix.arch }}.deb
209+ sed -i -e 's/REPLACE_TAG/sniffnet_${VERSION}_${{ matrix.arch }}.deb/g' resources/packaging/linux/AppImage/sniffnet.yml
208210 sed -i -e 's/binary-${arch}/binary-${{ matrix.arch }}/g' pkg2appimage/functions.sh
209211
210212 - name : Repackage for AppImage
211213 shell : bash
212214 run : |
213- grep -m1 "^version" Cargo.toml | cut -d'"' -f2 > VERSION
214215 cd pkg2appimage
215216 NO_GLIBC_VERSION=1 ARCH=${{ matrix.appimgarch }} FUNCTIONS_SH=$(pwd)/functions.sh ./pkg2appimage ../resources/packaging/linux/AppImage/sniffnet.yml
216217 mkdir /out
You can’t perform that action at this time.
0 commit comments