Fixed the app image extraction
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
16ffa5736f
commit
a07a522cf3
|
@ -1,12 +1,34 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: rust:bullseye
|
image: rust:bullseye
|
||||||
|
commands:
|
||||||
|
- apt update && apt install -y libgtk-3-dev libxcb-shape0-dev
|
||||||
|
libxcb-xfixes0-dev
|
||||||
|
- cargo build --release
|
||||||
|
|
||||||
|
build_appimage:
|
||||||
|
image: rust:bullseye
|
||||||
|
group: build_release_files
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt install -y libgtk-3-dev libxcb-shape0-dev
|
- apt update && apt install -y libgtk-3-dev libxcb-shape0-dev
|
||||||
libxcb-xfixes0-dev python3-pip python3-setuptools patchelf
|
libxcb-xfixes0-dev python3-pip python3-setuptools patchelf
|
||||||
desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
||||||
- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
|
# Install appimage tool
|
||||||
- chmod +x /usr/local/bin/appimagetool
|
- (cd /tmp/ &&
|
||||||
|
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage &&
|
||||||
|
chmod +x appimagetool-x86_64.AppImage &&
|
||||||
|
./appimagetool-x86_64.AppImage --appimage-extract &&
|
||||||
|
cp -avr squashfs-root/usr/* /usr/)
|
||||||
|
- export CARGO_HOME=/root/.cargo
|
||||||
- cargo install cargo-appimage
|
- cargo install cargo-appimage
|
||||||
- cargo build
|
# Build appimage
|
||||||
- cargo appimage
|
- cargo appimage
|
||||||
|
|
||||||
|
build_windows:
|
||||||
|
image: rust:bullseye
|
||||||
|
group: build_release_files
|
||||||
|
commands:
|
||||||
|
- apt update && apt install -y mingw-w64
|
||||||
|
- rustup target add x86_64-pc-windows-gnu
|
||||||
|
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
||||||
|
- cargo build --target x86_64-pc-windows-gnu
|
||||||
|
|
Loading…
Reference in New Issue