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
0d200810
Commit
0d200810
authored
May 01, 2021
by
Ed Reel
Committed by
GitHub
May 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add AppImage source_url support (#5714)
Do not strip if CREW_NOT_STRIP is set Bump crew version
parent
8dd93f1b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
bin/crew
bin/crew
+19
-13
lib/const.rb
lib/const.rb
+1
-1
No files found.
bin/crew
View file @
0d200810
...
...
@@ -579,7 +579,7 @@ def download
case
File
.
basename
(
filename
)
#
Sources
that
download
with
curl
when
/\.
zip
$/
i
,
/\.(
tar
(\.(
gz
|
bz2
|
xz
|
lz
))?|
tgz
|
tbz
|
txz
)$/
i
,
/\.
deb
$/
i
when
/\.
zip
$/
i
,
/\.(
tar
(\.(
gz
|
bz2
|
xz
|
lz
))?|
tgz
|
tbz
|
txz
)$/
i
,
/\.
deb
$/
i
,
/\.
AppImage
$/
i
#
Recall
file
from
cache
if
requested
if
CREW_CACHE_ENABLED
puts
"Looking for archive in cache"
.
orange
if
@
opt_verbose
...
...
@@ -699,12 +699,16 @@ def unpack (meta)
system
'unzip'
,
_verbopt
,
'-d'
,
@
extract_dir
,
meta
[:
filename
],
exception
:
true
when
/\.(
tar
(\.(
gz
|
bz2
|
xz
|
lz
))?|
tgz
|
tbz
|
txz
)$/
i
puts
"Unpacking archive using 'tar', this may take a while..."
FileUtils
.
mkdir
@
extract_dir
unless
Dir
.
exist
?(@
extract_dir
)
system
"tar x#{@verbose}f #{meta[:filename]} -C #{@extract_dir}"
,
exception
:
true
when
/\.
deb
$/
i
puts
"Unpacking archive using 'ar', this may take a while..."
FileUtils
.
mkdir
@
extract_dir
unless
Dir
.
exist
?(@
extract_dir
)
system
"ar -p #{meta[:filename]} data.tar.xz | xz -dc#{@verbose} | tar x#{@verbose} -C #{@extract_dir}"
,
exception
:
true
when
/\.
AppImage
$/
i
puts
"Unpacking 'AppImage' archive, this may take a while..."
FileUtils
.
chmod
0755
,
meta
[:
filename
],
verbose
:
@
fileutils_verbose
Dir
.
chdir
@
extract_dir
do
system
"../#{meta[:filename]} --appimage-extract"
,
exception
:
true
end
end
if
meta
[:
source
]
==
true
#
Check
the
number
of
directories
in
the
archive
...
...
@@ -843,6 +847,7 @@ def strip_find_files (find_cmd, strip_option = "")
end
def
strip_dir
(
dir
)
unless
CREW_NOT_STRIP
||
ENV
[
'CREW_NOT_STRIP'
]
Dir
.
chdir
dir
do
#
Strip
libraries
with
-
S
puts
"Stripping libraries..."
...
...
@@ -854,6 +859,7 @@ def strip_dir (dir)
inames
=
extensions
.
join
(
' ! -iname *\.'
)
strip_find_files
"find . -type f ! -iname *\.#{inames} -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
end
end
end
def
install_package
(
pkgdir
)
...
...
lib/const.rb
View file @
0d200810
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.8.1
4
'
CREW_VERSION
=
'1.8.1
5
'
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
...
...
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