snap: *Another* fix for building (#668)

This commit is contained in:
Christopher James Halse Rogers 2019-09-20 09:26:04 +02:00 committed by GitHub
parent b36e12b654
commit e54fffccdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,10 +31,10 @@ parts:
- pkg-config - pkg-config
- libsqlite3-dev - libsqlite3-dev
- gettext - gettext
after:
- cargo-web
override-build: | override-build: |
export PATH=$PATH:$SNAPCRAFT_PROJECT_DIR/../.cargo/bin export PATH=$PATH:$HOME/.cargo/bin
rustup install stable
cargo +stable install cargo-web
cargo web deploy -p plume-front --release cargo web deploy -p plume-front --release
cargo install --force --no-default-features --features sqlite --path . --root ${SNAPCRAFT_PART_INSTALL} cargo install --force --no-default-features --features sqlite --path . --root ${SNAPCRAFT_PART_INSTALL}
cargo install --force --no-default-features --features sqlite --path plume-cli --root ${SNAPCRAFT_PART_INSTALL} cargo install --force --no-default-features --features sqlite --path plume-cli --root ${SNAPCRAFT_PART_INSTALL}
@ -43,11 +43,3 @@ parts:
stage-packages: stage-packages:
- openssl - openssl
- libsqlite3-0 - libsqlite3-0
cargo-web:
plugin: rust
source: https://github.com/koute/cargo-web.git
source-tag: 0.6.26
override-pull: |
printf "\n[Workspace]\n" >> ${SNAPCRAFT_PART_SRC}/Cargo.toml
snapcraftctl pull