Skip to content

Commit 4b17601

Browse files
committed
Preparing for 0.9.2
1 parent c994307 commit 4b17601

File tree

6 files changed

+77
-28
lines changed

6 files changed

+77
-28
lines changed

com.jeffser.Alpaca.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,31 @@
7171
}
7272
]
7373
},
74+
{
75+
"name": "ollama",
76+
"buildsystem": "simple",
77+
"build-commands": [
78+
"install -Dm0755 ollama* ${FLATPAK_DEST}/bin/ollama"
79+
],
80+
"sources": [
81+
{
82+
"type": "file",
83+
"url": "https://github.com/ollama/ollama/releases/download/v0.1.38/ollama-linux-amd64",
84+
"sha256": "c3360812503a9756a507ebb9d78667e2b21800a760b45046bc48a8f3b81972f4",
85+
"only-arches": [
86+
"x86_64"
87+
]
88+
},
89+
{
90+
"type": "file",
91+
"url": "https://github.com/ollama/ollama/releases/download/v0.1.38/ollama-linux-arm64",
92+
"sha256": "f2d091afe665b2d5ba8b68e2473d36cdfaf80c61c7d2844a0a8f533c4e62f547",
93+
"only-arches": [
94+
"aarch64"
95+
]
96+
}
97+
]
98+
},
7499
{
75100
"name" : "alpaca",
76101
"builddir" : true,

data/com.jeffser.Alpaca.metainfo.xml.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@
6363
<url type="homepage">https://github.com/Jeffser/Alpaca</url>
6464
<url type="donation">https://github.com/sponsors/Jeffser</url>
6565
<releases>
66+
<release version="0.9.2" date="2024-05-30">
67+
<url type="details">https://github.com/Jeffser/Alpaca/releases/tag/0.9.2</url>
68+
<description>
69+
<p>Fix</p>
70+
<ul>
71+
<li>Fixed: app didn't open if models tweaks wasn't present in the config files</li>
72+
</ul>
73+
</description>
74+
</release>
6675
<release version="0.9.1" date="2024-05-29">
6776
<url type="details">https://github.com/Jeffser/Alpaca/releases/tag/0.9.1</url>
6877
<description>

data/meson.build

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,24 @@ test('Validate schema file',
3333
compile_schemas,
3434
args: ['--strict', '--dry-run', meson.current_source_dir()])
3535

36-
service_conf = configuration_data()
37-
service_conf.set('appid', application_id)
38-
service_conf.set('libexecdir', join_paths(get_option('prefix'), get_option('bindir')))
39-
configure_file(
40-
input: 'com.jeffser.Alpaca.SearchProvider.service.in',
41-
output: '@[email protected]'.format(application_id),
42-
configuration: service_conf,
43-
install_dir: join_paths(join_paths(get_option('prefix'), get_option('datadir')), 'dbus-1', 'services')
44-
)
45-
46-
search_provider_conf = configuration_data()
47-
search_provider_conf.set('appid', application_id)
48-
configure_file(
49-
configuration: search_provider_conf,
50-
input: files('com.jeffser.Alpaca.SearchProvider.ini.in'),
51-
install_dir: join_paths(get_option('datadir'), 'gnome-shell', 'search-providers'),
52-
output: '@[email protected]'.format(application_id)
53-
)
36+
#service_conf = configuration_data()
37+
#service_conf.set('appid', application_id)
38+
#service_conf.set('libexecdir', join_paths(get_option('prefix'), get_option('bindir')))
39+
#configure_file(
40+
#input: 'com.jeffser.Alpaca.SearchProvider.service.in',
41+
#output: '@[email protected]'.format(application_id),
42+
#configuration: service_conf,
43+
#install_dir: join_paths(join_paths(get_option('prefix'), get_option('datadir')), 'dbus-1', 'services')
44+
#)
45+
46+
#search_provider_conf = configuration_data()
47+
#search_provider_conf.set('appid', application_id)
48+
#configure_file(
49+
#configuration: search_provider_conf,
50+
#input: files('com.jeffser.Alpaca.SearchProvider.ini.in'),
51+
#install_dir: join_paths(get_option('datadir'), 'gnome-shell', 'search-providers'),
52+
#output: '@[email protected]'.format(application_id)
53+
#)
5454

5555

5656
subdir('icons')

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('Alpaca', 'c',
2-
version: '0.9.1',
2+
version: '0.9.2',
33
meson_version: '>= 0.62.0',
44
default_options: [ 'warning_level=2', 'werror=false', ],
55
)

src/alpaca_search_provider.in

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,19 @@ class SearchProvider:
1111
def __init__(self):
1212
print("ALPACA __init__")
1313
self.connection = Gio.bus_get_sync(Gio.BusType.SESSION, None)
14-
self.connection.register_object(DBUS_OBJECT_PATH, self.get_interface_info(), None, self.handle_method_call, None)
14+
if not self.connection:
15+
print("ALPACA Failed to get D-Bus connection")
16+
return
17+
18+
print("ALPACA D-Bus connection obtained")
19+
20+
interface_info = self.get_interface_info()
21+
self.registration_id = self.connection.register_object(DBUS_OBJECT_PATH, interface_info, self.handle_method_call, None)
22+
23+
if self.registration_id > 0:
24+
print(f"ALPACA Object registered with ID: {self.registration_id}")
25+
else:
26+
print("ALPACA Failed to register object")
1527

1628
def get_interface_info(self):
1729
print("ALPACA get_interface_info")
@@ -56,19 +68,19 @@ class SearchProvider:
5668
print("ALPACA handle_get_initial_result_set")
5769
terms = parameters.unpack()[0]
5870
print(f"Initial search terms: {terms}")
59-
results = []
71+
results = ["result1", "result2"]
6072
if "Alpaca" in terms:
61-
results.append("placeholder_result")
73+
results.append("alpaca_placeholder_result")
6274
print(f"Returning results: {results}")
6375
invocation.return_value(GLib.Variant("(as)", [results]))
6476

6577
def handle_get_subsearch_result_set(self, invocation, parameters):
6678
print("ALPACA handle_get_subsearch_result_set")
6779
previous_results, terms = parameters.unpack()
6880
print(f"Subsearch terms: {terms}, previous results: {previous_results}")
69-
results = []
81+
results = ["result3", "result4"]
7082
if "Alpaca" in terms:
71-
results.append("sub_placeholder_result")
83+
results.append("sub_alpaca_placeholder_result")
7284
print(f"Returning subsearch results: {results}")
7385
invocation.return_value(GLib.Variant("(as)", [results]))
7486

@@ -91,6 +103,9 @@ class SearchProvider:
91103

92104
if __name__ == "__main__":
93105
provider = SearchProvider()
94-
loop = GLib.MainLoop()
95-
loop.run()
96-
106+
if provider.registration_id > 0:
107+
loop = GLib.MainLoop()
108+
print("ALPACA Running main loop")
109+
loop.run()
110+
else:
111+
print("ALPACA Failed to start main loop due to object registration failure")

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def on_about_action(self, widget, _):
4747
application_name='Alpaca',
4848
application_icon='com.jeffser.Alpaca',
4949
developer_name='Jeffry Samuel Eduarte Rojas',
50-
version='0.9.1',
50+
version='0.9.2',
5151
developers=['Jeffser https://jeffser.com'],
5252
designers=['Jeffser https://jeffser.com'],
5353
translator_credits='Alex K (Russian) https://github.com/alexkdeveloper\nJeffser (Spanish) https://jeffser.com\nDaimar Stein (Brazilian Portuguese) https://github.com/not-a-dev-stein\nLouis Chauvet-Villaret (French) https://github.com/loulou64490',

0 commit comments

Comments
 (0)