mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 22:12:53 +00:00
Changed linux build method
This commit is contained in:
parent
65708c48c3
commit
62cf4d0c7f
8 changed files with 59 additions and 10 deletions
|
@ -4,7 +4,7 @@ project(runner LANGUAGES CXX)
|
|||
|
||||
# The name of the executable created for the application. Change this to change
|
||||
# the on-disk name of your application.
|
||||
set(BINARY_NAME "adguard_home_manager")
|
||||
set(BINARY_NAME "AdGuardHomeManager")
|
||||
# The unique GTK application identifier for this application. See:
|
||||
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
|
||||
set(APPLICATION_ID "com.jgeek00.adguard_home_manager")
|
||||
|
|
30
linux/build-app.sh
Executable file
30
linux/build-app.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
# Build the Flutter app and package into an archive.
|
||||
|
||||
|
||||
# Exit if any command fails
|
||||
set -e
|
||||
|
||||
# Echo all commands for debug purposes
|
||||
set -x
|
||||
|
||||
|
||||
projectName=AdGuard-Home-Manager
|
||||
|
||||
archiveName=$projectName-Linux.tar.gz
|
||||
baseDir=$(pwd)
|
||||
|
||||
|
||||
# ----------------------------- Build Flutter app ---------------------------- #
|
||||
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter build linux --release
|
||||
|
||||
flutter_to_debian
|
||||
|
||||
cd build/linux/x64/release/bundle || exit
|
||||
mv "AdGuardHomeManager" "AdGuard Home Manager"
|
||||
tar -czaf $archiveName ./*
|
|
@ -51,6 +51,13 @@ static void my_application_activate(GApplication* application) {
|
|||
gtk_widget_show(GTK_WIDGET(window));
|
||||
|
||||
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
||||
|
||||
g_autoptr(GError) error = nullptr;
|
||||
gtk_window_set_icon_from_file(window, g_strconcat(fl_dart_project_get_assets_path(project), "/assets/icon/icon-circle-256.png", NULL), &error);
|
||||
if (error != nullptr) {
|
||||
g_warning("Failed to set icon: %s", error->message);
|
||||
}
|
||||
|
||||
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
|
||||
|
||||
FlView* view = fl_view_new(project);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue