Skip to content

Commit 1535962

Browse files
authored
Merge pull request #161 from horriblename/chores
chore: update to hyprland 0.44.1 and standardize version number
2 parents 427690a + 2eb249f commit 1535962

File tree

9 files changed

+81
-39
lines changed

9 files changed

+81
-39
lines changed

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v0.8.2

flake.lock

Lines changed: 65 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
description = "Hyprland plugin for touch gestures";
33

4-
inputs.hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&tag=v0.42.0";
4+
inputs.hyprland.url = "github:hyprwm/Hyprland";
55

66
outputs = {
77
self,

hyprload.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[hyprgrass]
22
description = "Touch gestures"
3-
version = "0.7.0"
43
author = "horriblename"
54

65
[hyprgrass.build]

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('hyprgrass', 'cpp', 'c',
2-
version: '0.7.0',
2+
version: run_command('cat', join_paths(meson.project_source_root(), 'VERSION'), check: true).stdout().strip(),
33
default_options: ['buildtype=release'],
44
)
55

nix/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
doctest,
1111
runTests ? false,
1212
}: let
13-
pluginInfo = builtins.fromTOML (builtins.readFile ../hyprload.toml);
13+
version = builtins.readFile ../VERSION;
1414
in
1515
gcc13Stdenv.mkDerivation {
1616
pname = "hyprgrass";
17-
inherit (pluginInfo.hyprgrass) version;
17+
inherit version;
1818
src = ./..;
1919

2020
nativeBuildInputs =

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "GestureManager.hpp"
22
#include "globals.hpp"
3+
#include "version.hpp"
34

45
#include <hyprland/src/Compositor.hpp>
56
#include <hyprland/src/config/ConfigManager.hpp>
@@ -137,7 +138,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
137138

138139
g_pGestureManager = std::make_unique<GestureManager>();
139140

140-
return {"hyprgrass", "Touchscreen gestures", "horriblename", "0.7"};
141+
return {"hyprgrass", "Touchscreen gestures", "horriblename", HYPRGRASS_VERSION};
141142
}
142143

143144
APICALL EXPORT void PLUGIN_EXIT() {

src/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
subdir('gestures')
22

3+
version_header = configure_file(
4+
input: 'version.hpp.in',
5+
output: 'version.hpp',
6+
configuration: {
7+
'HYPRGRASS_VERSION': meson.project_version()
8+
}
9+
)
10+
311
shared_module('hyprgrass',
412
'main.cpp',
513
'GestureManager.cpp',

src/version.hpp.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#define HYPRGRASS_VERSION "@HYPRGRASS_VERSION@"

0 commit comments

Comments
 (0)