Cargo.toml not found
Based on your template I'm trying to build an app using a buildsystem: simple
instead of maeson
, the problem, however, is that every time it gets to the build-commands it returns an error that the Cargo.toml
file is not found...
I tried adding ls
commands to see what files exist in the build directory but all I get is empty folder.
I'm clueless why both the quickstart show this --manifest-path Cargo.toml
and your template but
build-commands:
# - echo $(pwd)
# - ls -la .
# - ls -la ../
# - ls -la ../../
# - ls -la ../../../
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --features=bundled --verbose
Running: cargo --offline fetch --manifest-path Cargo.toml --verbose
error: manifest path `Cargo.toml` does not exist
Error: module service: Child process exited with code 101
Details
My manifest is in the root of the project:
app-id: com.........
runtime: org.gnome.Platform
runtime-version: "43"
sdk: "org.gnome.Sdk"
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: my-app-service
finish-args:
- --share=network
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --talk-name=org.kde.StatusNotifierWatcher
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
modules:
- name: service
buildsystem: simple
build-options:
env:
# - RUSTFLAGS: '--remap-path-prefix =../'
- CARGO_HOME: /run/build/service/cargo
build-commands:
# - echo $(pwd)
# - ls -la .
# - ls -la ../
# - ls -la ../../
# - ls -la ../../../
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --features=bundled --verbose
post-install:
- install -Dm755 target/release/my-app-service -t /app/bin/my-app-service/
- install -Dm644 flatpak/com..........desktop /app/share/applications/com..........desktop
- install -Dm644 flatpak/com..........svg /app/share/icons/hicolor/scalable/apps/com..........svg
- install -Dm644 flatpak/com..........appdata.xml /app/share/metainfo/com..........xml
sources:
- type: dir
path: "."
# path: "../" # tried with RUSTFLAGS too
- generated-sources.json # The file from the generator
modules:
- flatpak/shared-modules/libappindicator/libappindicator-gtk3-12.10.json # submodule
Edited by Ghost User