Skip to content

Commit

Permalink
Adding install.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobermudez committed Apr 4, 2024
1 parent 36bd356 commit d42fb95
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
13 changes: 13 additions & 0 deletions banshy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
14 changes: 7 additions & 7 deletions configuration.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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 }

Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d42fb95

Please sign in to comment.