Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
193490c2
Commit
193490c2
authored
Apr 18, 2021
by
Ed Reel
Committed by
GitHub
Apr 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update torbrowser from 10.0.13 to 10.0.15 (#5664)
Fix postinstall and remove sections
parent
b58df86c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
packages/torbrowser.rb
packages/torbrowser.rb
+12
-13
No files found.
packages/torbrowser.rb
View file @
193490c2
...
...
@@ -3,7 +3,7 @@ require 'package'
class
Torbrowser
<
Package
description
"'The Onion Router' browser"
homepage
'https://www.torproject.org/'
@_ver
=
'10.0.1
3
'
@_ver
=
'10.0.1
5
'
version
@_ver
license
'BSD, custom, MPL-2.0 and MIT'
compatibility
'x86_64'
...
...
@@ -11,7 +11,7 @@ class Torbrowser < Package
@_url
=
"https://www.torproject.org/dist/torbrowser/
#{
@_ver
}
"
@_name
=
"tor-browser-linux64-
#{
@_ver
}
_en-US.tar.xz"
source_url
"
#{
@_url
}
/
#{
@_name
}
"
source_sha256
`curl -#L '
#{
@_url
}
/sha256sums-signed-build.txt' | grep '
#{
@_name
}
' | cut -d' ' -f1`
.
chomp
source_sha256
'3a73b44f68fe97c4d89984fd0a23be069c495ada7ecf97dc3060c6e7aa4c06aa'
depends_on
'gtk3'
depends_on
'sommelier'
...
...
@@ -34,26 +34,25 @@ class Torbrowser < Package
end
def
self
.
postinstall
puts
puts
'Set Tor as your default browser? [Y/n]: '
case
STDIN
.
gets
.
chomp
when
"
\n
"
,
'Y'
,
'y'
,
'yes'
print
"
\n
Set Tor as your default browser? [Y/n]: "
case
STDIN
.
getc
when
"
\n
"
,
'Y'
,
'y'
Dir
.
chdir
(
"
#{
CREW_PREFIX
}
/bin"
)
do
FileUtils
.
ln_sf
'tor'
,
'x-www-browser'
end
puts
'Tor is now your default browser.'
.
lightgreen
else
puts
'No change has been made.'
puts
puts
'No change has been made.'
.
orange
end
puts
puts
"Type 'tor' to get started."
.
lightblue
puts
puts
"
\n
Type 'tor' to get started.
\n
"
.
lightblue
end
def
self
.
remove
Dir
.
chdir
(
"
#{
CREW_PREFIX
}
/bin"
)
do
FileUtils
.
rm
'x-www-browser'
if
File
.
realpath
(
'x-www-browser'
)
==
"
#{
CREW_PREFIX
}
/bin/tor"
if
File
.
exist?
(
'x-www-browser'
)
and
File
.
symlink?
(
'x-www-browser'
)
\
and
File
.
realpath
(
'x-www-browser'
)
==
"
#{
CREW_PREFIX
}
/bin/tor"
FileUtils
.
rm
'x-www-browser'
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment