Commit a1d5be70 authored by Daniel García Moreno's avatar Daniel García Moreno

Flatpak updated using the flathub rust-stable extension

parent b4eceb0a
#!/bin/bash
flatpak-builder --repo=repo rust-sdk org.freedesktop.Sdk.Extension.rust-121.json
#flatpak --user install flathub org.freedesktop.Sdk.Extension.rust-stable
flatpak-builder --repo=repo fractal org.gnome.Fractal.json
#flatpak --user remote-add --no-gpg-verify --if-not-exists fractal-repo repo
#flatpak --user install fractal-repo org.freedesktop.Sdk.Extension.rust-121
#flatpak --user install fractal-repo org.gnome.Fractal
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.freedesktop.Sdk.Extension.rust-121</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Rust 1.21 Sdk extension</name>
<summary>Rust compiler and tools</summary>
</component>
{
"id": "org.freedesktop.Sdk.Extension.rust-121",
"branch": "1.6",
"runtime": "org.freedesktop.Sdk",
"build-extension": true,
"sdk": "org.freedesktop.Sdk",
"runtime-version": "1.6",
"sdk-extensions": [],
"separate-locales": false,
"appstream-compose": false,
"cleanup": [ "/share/info", "/share/man" ],
"build-options" : {
"cflags": "-O2 -g",
"cxxflags": "-O2 -g",
"prefix": "/usr/lib/sdk/rust-121",
"env": {
"V": "1"
}
},
"modules": [
{
"name": "rust",
"buildsystem": "simple",
"cleanup": [
"/share/doc/rust/html"
],
"sources": [
{
"type": "archive",
"only-arches": ["i386"],
"url": "https://static.rust-lang.org/dist/rust-1.21.0-i686-unknown-linux-gnu.tar.gz",
"sha256": "b7caed0f602cdb8ef22e0bfa9125a65bec411e15c0b8901d937e43303ec7dbee"
},
{
"type": "archive",
"only-arches": ["arm"],
"url": "https://static.rust-lang.org/dist/rust-1.21.0-arm-unknown-linux-gnueabihf.tar.gz",
"sha256": "add0b9c2fae88b9d84e5a25ebf09a9805010aaddd6e2584e41b5822ba8e51dd9"
},
{
"type": "archive",
"only-arches": ["aarch64"],
"url": "https://static.rust-lang.org/dist/rust-1.21.0-aarch64-unknown-linux-gnu.tar.gz",
"sha256": "491ee6c43cc672006968d665bd34c94cc2219ef3592d93d38097c97eaaa864c3"
},
{
"type": "archive",
"only-arches": ["x86_64"],
"url": "https://static.rust-lang.org/dist/rust-1.21.0-x86_64-unknown-linux-gnu.tar.gz",
"sha256": "b41e70e018402bc04d02fde82f91bea24428e6be432f0df12ac400cfb03108e8"
}
],
"build-commands": [
"./install.sh --help",
"./install.sh --list-components --verbose",
"./install.sh --prefix=/usr/lib/sdk/rust-121 --disable-ldconfig --verbose"
]
},
{
"name": "scripts",
"sources": [
{
"type": "script",
"commands": [
"export PATH=$PATH:/usr/lib/sdk/rust-121/bin"
],
"dest-filename": "enable.sh"
}
],
"buildsystem": "simple",
"build-commands": [
"cp enable.sh /usr/lib/sdk/rust-121/"
]
},
{
"name": "appdata",
"buildsystem": "simple",
"build-commands": [
"mkdir -p ${FLATPAK_DEST}/share/appdata",
"cp org.freedesktop.Sdk.Extension.rust-121.appdata.xml ${FLATPAK_DEST}/share/appdata",
"appstream-compose --basename=org.freedesktop.Sdk.Extension.rust-121 --prefix=${FLATPAK_DEST} --origin=flatpak org.freedesktop.Sdk.Extension.rust-121"
],
"sources": [
{
"type": "file",
"path": "org.freedesktop.Sdk.Extension.rust-121.appdata.xml"
}
]
}
]
}
......@@ -4,7 +4,7 @@
"runtime": "org.gnome.Platform",
"runtime-version": "3.26",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-121"],
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-stable"],
"command": "fractal",
"finish-args": ["--share=network", "--socket=x11", "--filesystem=host" ],
"build-options" : {
......@@ -19,7 +19,7 @@
"name": "Fractal",
"buildsystem": "simple",
"build-commands": [
"source /usr/lib/sdk/rust-121/enable.sh && ./configure --prefix=/app && make && make install"
"source /usr/lib/sdk/rust-stable/enable.sh && ./configure --prefix=/app && make && make install"
],
"sources": [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment