forked from BreakerTWS/CoBreak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcobreak.gemspec
executable file
·56 lines (47 loc) · 1.73 KB
/
cobreak.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Gem::Specification.new do |info|
info.name = 'cobreak'
info.version = '1.0.5'
info.executables << "cobreak"
info.executables << "cbrdb"
info.description = "The CoBreak script is an cipher and cryptography tool"
info.add_development_dependency "bundler", "~> 2.3"
info.add_development_dependency "sequel", "~> 5.44.0"
info.add_development_dependency "sqlite3", '~> 1.4', '>= 1.4.0'
info.add_runtime_dependency "sqlite3", '~> 1.4', '>= 1.4.0'
info.add_runtime_dependency "gtk3", '~> 3.4'
info.add_runtime_dependency "ruby_figlet"
info.authors = ["BreakerTW"]
info.email = '[email protected]'
info.summary = "Force Brute, Cipher, Cryptography"
# Extensiones y hooks de instalación
info.extensions = %w[ext/cobreak/extconf.rb]
# Incluir todos los archivos necesarios
info.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(/^.gitignore/)
end
# Asegurarse de incluir los archivos del sistema
info.files += [
'cobreak.desktop',
'install_hooks.rb',
'img/Breaker.jpg'
]
# Definir los hooks de instalación
info.metadata = {
"rubygems_mfa_required" => "true",
"install_hooks" => "install_hooks.rb"
}
info.homepage = 'https://github.com/BreakingTWS/CoBreak'
info.license = 'MIT'
# Mensaje post-instalación actualizado
info.post_install_message = <<-MESSAGE
Thanks for installing CoBreak!
CoBreak has been installed and will be integrated into your system menu.
If you installed without sudo privileges, please run:
sudo gem install cobreak
For more information visit: https://github.com/BreakingTWS/CoBreak
MESSAGE
# Cargar y ejecutar el hook de instalación
def info.post_install
require_relative 'install_hooks'
end
end