-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from luleyleo/rework-build-system
Rework build system
- Loading branch information
Showing
11 changed files
with
162 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ debian/* | |
flatpak/ | ||
.flatpak-builder/ | ||
assets/locale/ | ||
build-aux/Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Desktop Entry] | ||
Name=Clapgrep Devel | ||
Comment=One app to search through all your files, powered by ripgrep | ||
Exec=clapgrep %u | ||
Terminal=false | ||
Type=Application | ||
StartupNotify=true | ||
Icon=de.leopoldluley.Clapgrep.Devel | ||
Categories=Utility;FileTools; | ||
Keywords=grep;ripgrep;search;pdf; | ||
MimeType=inode/directory; |
28 changes: 28 additions & 0 deletions
28
assets/icons/hicolor/scalable/apps/de.leopoldluley.Clapgrep.Devel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/flatpak/flatpak-builder/1.4.4/data/flatpak-manifest.schema.json", | ||
"id": "de.leopoldluley.Clapgrep.Devel", | ||
"runtime": "org.gnome.Platform", | ||
"runtime-version": "46", | ||
"sdk": "org.gnome.Sdk", | ||
"sdk-extensions": [ | ||
"org.freedesktop.Sdk.Extension.rust-stable" | ||
], | ||
"command": "clapgrep", | ||
"finish-args": [ | ||
"--share=ipc", | ||
"--socket=fallback-x11", | ||
"--socket=wayland", | ||
"--device=dri", | ||
"--filesystem=host:ro" | ||
], | ||
"cleanup": [ | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/man", | ||
"/share/doc", | ||
"/share/gtk-doc", | ||
"/share/man", | ||
"/share/pkgconfig", | ||
"*.la", | ||
"*.a" | ||
], | ||
"build-options": { | ||
"append-path": "/usr/lib/sdk/rust-stable/bin" | ||
}, | ||
"modules": [ | ||
{ | ||
"name": "blueprint-compiler", | ||
"buildsystem": "meson", | ||
"cleanup": [ | ||
"*" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://gitlab.gnome.org/jwestman/blueprint-compiler", | ||
"tag": "v0.14.0" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "clapgrep", | ||
"buildsystem": "simple", | ||
"build-options": { | ||
"env": { | ||
"CARGO_HOME": "/run/build/clapgrep/cargo", | ||
"APP_ID": "de.leopoldluley.Clapgrep.Devel" | ||
} | ||
}, | ||
"build-commands": [ | ||
"make --file=build-aux/Makefile" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "dir", | ||
"path": ".." | ||
}, | ||
"./cargo-sources.json" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
flatpak-builder --run $(dirname $0)/../flatpak $(dirname $0)/de.leopoldluley.Clapgrep.json env CARGO_HOME=/run/build/clapgrep/cargo "$@" | ||
flatpak-builder --run \ | ||
$(dirname $0)/../flatpak \ | ||
$(dirname $0)/de.leopoldluley.Clapgrep.json \ | ||
env CARGO_HOME=/run/build/clapgrep/cargo APP_ID=$APP_ID "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters