Skip to content

Commit 9a67663

Browse files
committed
add script
1 parent 503b0ec commit 9a67663

File tree

6 files changed

+3265
-0
lines changed

6 files changed

+3265
-0
lines changed

.DS_Store

8 KB
Binary file not shown.

data/gschemas.compiled

3.59 KB
Binary file not shown.

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pkgconfig = import('pkgconfig')
1010

1111
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
1212
add_project_arguments('-DLIBICAL_GLIB_UNSTABLE_API=1', language: 'c')
13+
add_project_arguments('--vapidir', meson.project_source_root() / 'vapi', language: 'vala')
1314

1415
gio_dep = dependency('gio-2.0')
1516
glib_dep = dependency('glib-2.0')

run-macos.sh

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/bash
2+
3+
# Script to build and run Planify on macOS without optional dependencies
4+
5+
# Check critical dependencies
6+
echo "Checking dependencies..."
7+
for dep in pango cairo fontconfig; do
8+
if ! brew list $dep &>/dev/null; then
9+
echo "Installing $dep..."
10+
brew install $dep
11+
fi
12+
done
13+
14+
# Clean previous build if exists
15+
if [ -d "build" ]; then
16+
echo "Cleaning previous build..."
17+
rm -rf build
18+
fi
19+
20+
# Configure with meson without optional dependencies
21+
echo "Configuring project..."
22+
meson setup build \
23+
-Dwebkit=false \
24+
-Dspelling=disabled \
25+
-Dportal=false \
26+
-Devolution=false
27+
28+
# Compile
29+
echo "Compiling..."
30+
if meson compile -C build; then
31+
# Compile gschemas locally
32+
echo "Compiling gschemas..."
33+
glib-compile-schemas data
34+
35+
# Run with environment variables for schemas
36+
echo "Running Planify..."
37+
echo ""
38+
39+
# Configure Pango and Cairo for macOS
40+
export FONTCONFIG_PATH=/opt/homebrew/etc/fonts
41+
export FONTCONFIG_FILE=/opt/homebrew/etc/fonts/fonts.conf
42+
export XDG_DATA_DIRS=/opt/homebrew/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
43+
44+
# Use macOS system fonts as fallback
45+
export PANGO_EMOJI_FONT="Apple Color Emoji"
46+
47+
GSETTINGS_SCHEMA_DIR=data ./build/src/io.github.alainm23.planify
48+
else
49+
echo "Compilation error"
50+
exit 1
51+
fi

src/App.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public class Planify : Adw.Application {
7474
}
7575

7676
protected override void activate () {
77+
print ("Activating Planify\n");
78+
7779
if (lang != "") {
7880
GLib.Environment.set_variable ("LANGUAGE", lang, true);
7981
}

0 commit comments

Comments
 (0)