From d42fb95418f325738d3acf5035fcf26f4e1ca0c8 Mon Sep 17 00:00:00 2001 From: Roberto Bermudez Date: Fri, 5 Apr 2024 01:17:52 +0200 Subject: [PATCH] Adding install.sh file --- banshy.sh | 13 +++++++++++++ configuration.rb | 14 +++++++------- install.sh | 4 ++-- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/banshy.sh b/banshy.sh index 4f11578..1b585d7 100755 --- a/banshy.sh +++ b/banshy.sh @@ -10,4 +10,17 @@ export GEM_PATH export GEM_HOME export PATH=$PATH:$GEM_HOME'/bin' +# gem pristine gdk_pixbuf2 --version 4.2.1 +# gem pristine gio2 --version 4.2.1 +# gem pristine glib2 --version 4.2.1 +# gem pristine gobject-introspection --version 4.2.1 +# gem pristine gstreamer --version 4.2.1 +# gem pristine gtk3 --version 4.2.1 +# gem pristine interception --version 0.5 +# gem pristine json --version 2.7.1 +# gem pristine pango --version 4.2.1 +# gem pristine racc --version 1.7.3 + +ruby --version + $(ruby $PREFIX/banshy/banshy.rb) diff --git a/configuration.rb b/configuration.rb index 7c64b7e..a828952 100644 --- a/configuration.rb +++ b/configuration.rb @@ -1,3 +1,10 @@ +APP_ROOT_PATH = File.expand_path(__dir__).freeze +PATH_FILES = File.join(ENV['HOME'], '/.banshy/').freeze +PATH_DB_TEST = File.join(APP_ROOT_PATH, 'test', 'datab.db').freeze +RESOURCE_XML = File.join(APP_ROOT_PATH, 'resources', 'gresources.xml').freeze +RESOURCE_BIN = File.join(APP_ROOT_PATH, 'gresource.bin').freeze +$LOAD_PATH.unshift File.expand_path(APP_ROOT_PATH, 'lib/gems').freeze + require 'gtk3' require 'fileutils' require 'gstreamer' @@ -8,13 +15,6 @@ require 'singleton' require 'rake' -APP_ROOT_PATH = File.expand_path(__dir__).freeze -PATH_FILES = File.join(ENV['HOME'], '/.banshy/').freeze -PATH_DB_TEST = File.join(APP_ROOT_PATH, 'test', 'datab.db').freeze -RESOURCE_XML = File.join(APP_ROOT_PATH, 'resources', 'gresources.xml').freeze -RESOURCE_BIN = File.join(APP_ROOT_PATH, 'gresource.bin').freeze -$LOAD_PATH.unshift File.expand_path(APP_ROOT_PATH, 'lib/gems').freeze - # Require all ruby files in the application folder recursively Dir[File.join(APP_ROOT_PATH, 'application/**', '*.rb')].each { |file| require file } diff --git a/install.sh b/install.sh index c88d1f2..b63aff3 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,6 @@ echo "gem: --install-dir $GEM_PATH" export GEM_PATH export GEM_HOME export PATH=$PATH:$GEM_HOME'/bin' - gem install bundler bundle install bundle exec rake migrate:up @@ -40,6 +39,7 @@ Encoding=UTF-8 Version=0.1 Type=Application Terminal=false -Exec=${PREFIX}/banshy/banshy.sh +Exec=env GEM_PATH=$GEM_PATH env GEM_HOME=$GEM_HOME ${PREFIX}/banshy/banshy.sh +Name=Banshy! Icon=${PREFIX}/banshy/resources/banshy_logo.png EOF