Fix rust flatpak
This commit is contained in:
@@ -22,7 +22,20 @@
|
|||||||
"--talk-name=org.freedesktop.secrets",
|
"--talk-name=org.freedesktop.secrets",
|
||||||
"--own-name=org.kde.StatusNotifierItem-2-2"
|
"--own-name=org.kde.StatusNotifierItem-2-2"
|
||||||
],
|
],
|
||||||
|
"sdk-extensions": [
|
||||||
|
"org.freedesktop.Sdk.Extension.rust-stable"
|
||||||
|
],
|
||||||
|
"build-options": {
|
||||||
|
"append-path": "/usr/lib/sdk/rust-stable/bin",
|
||||||
|
"env": {
|
||||||
|
"RUST_BACKTRACE": "1",
|
||||||
|
"CARGO_NET_OFFLINE": "true",
|
||||||
|
"RUSTFLAGS": "--remap-path-prefix =../"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"modules": [
|
"modules": [
|
||||||
|
"flatpak/corrosion.json",
|
||||||
{
|
{
|
||||||
"name": "kirigamiaddons",
|
"name": "kirigamiaddons",
|
||||||
"config-opts": [
|
"config-opts": [
|
||||||
@@ -111,6 +124,7 @@
|
|||||||
"name": "integral",
|
"name": "integral",
|
||||||
"buildsystem": "cmake-ninja",
|
"buildsystem": "cmake-ninja",
|
||||||
"sources": [
|
"sources": [
|
||||||
|
"flatpak/generated-sources.json",
|
||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://invent.kde.org/tfella/integral.git",
|
"url": "https://invent.kde.org/tfella/integral.git",
|
||||||
|
|||||||
30
flatpak/corrosion.json
Normal file
30
flatpak/corrosion.json
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"build-options": {
|
||||||
|
"env": {
|
||||||
|
"CARGO_HOME": "/run/build/corrosion/cargo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"buildsystem": "cmake-ninja",
|
||||||
|
"cleanup": [
|
||||||
|
"/app"
|
||||||
|
],
|
||||||
|
"config-opts": [
|
||||||
|
"-DCORROSION_INSTALL_EXECUTABLE=OFF",
|
||||||
|
"-DCORROSION_BUILD_TESTS=OFF",
|
||||||
|
"-DCORROSION_DEV_MODE=OFF"
|
||||||
|
],
|
||||||
|
"name": "corrosion",
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"sha256": "843334a9f0f5efbc225dccfa88031fe0f2ec6fd787ca1e7d55ed27b2c25d9c97",
|
||||||
|
"type": "archive",
|
||||||
|
"url": "https://github.com/corrosion-rs/corrosion/archive/refs/tags/v0.5.1.tar.gz",
|
||||||
|
"x-checker-data": {
|
||||||
|
"type": "anitya",
|
||||||
|
"project-id": 242799,
|
||||||
|
"stable-only": true,
|
||||||
|
"url-template": "https://github.com/corrosion-rs/corrosion/archive/refs/tags/v0.5.1.tar.gz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
1
flatpak/flatpak-builder-tools
Submodule
1
flatpak/flatpak-builder-tools
Submodule
Submodule flatpak/flatpak-builder-tools added at aac65cf44c
5247
flatpak/generated-sources.json
Normal file
5247
flatpak/generated-sources.json
Normal file
File diff suppressed because it is too large
Load Diff
15
flatpak/regenerate-sources.sh
Executable file
15
flatpak/regenerate-sources.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export GIT_CLONE_ARGS="--depth 1 --single-branch"
|
||||||
|
export FLATPAK_DIR="$(readlink -f $(dirname $0))"
|
||||||
|
cd ${FLATPAK_DIR}
|
||||||
|
|
||||||
|
if [ ! -d flatpak-builder-tools ]; then
|
||||||
|
git clone ${GIT_CLONE_ARGS} https://github.com/flatpak/flatpak-builder-tools
|
||||||
|
else
|
||||||
|
git -C flatpak-builder-tools pull
|
||||||
|
fi
|
||||||
|
|
||||||
|
./flatpak-builder-tools/cargo/flatpak-cargo-generator.py -o generated-sources.json ../../integral/src/sdk/Cargo.lock
|
||||||
Reference in New Issue
Block a user