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
1d5d78d7
Commit
1d5d78d7
authored
Jul 09, 2021
by
satmandu
Committed by
GitHub
Jul 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use upx & shrink_dir by default (#5944)
* Use upx & shrink_dir by default * bump version
parent
1bfcd010
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
bin/crew
bin/crew
+3
-4
lib/const.rb
lib/const.rb
+1
-1
No files found.
bin/crew
View file @
1d5d78d7
...
...
@@ -970,9 +970,7 @@ def strip_dir(dir)
end
def
shrink_dir
(
dir
)
#
We
might
also
want
a
package
option
to
avoid
using
these
tools
#
on
specific
packages
such
as
sommelier
&
xwayland
.
if
ENV
[
'CREW_SHRINK_ARCHIVE'
]
==
'1'
unless
ENV
[
'CREW_SHRINK_ARCHIVE'
]
==
'0'
Dir
.
chdir
dir
do
if
File
.
exist
?(
"#{CREW_PREFIX}/bin/rdfind"
)
puts
"Using rdfind to find duplicate or hard linked files."
...
...
@@ -991,7 +989,8 @@ def shrink_dir(dir)
#
Logic
here
is
to
find
executable
binaries
,
compress
after
making
#
a
backup
,
then
expand
the
compressed
file
with
upx
.
If
the
#
expansion
doesn
't error out then it is ok to delete the backup.
@execfiles = %x[find . -executable -type f ! \\( -name \"*.so*\" -o -name \"*.a\" \\) -exec sh -c \"file -i \'
{}\
' | grep -q \'
executable
;
charset
=
binary
\
'\" \\; -print].chomp
# Disable for sommelier.elf and Xwayland.elf since upx breaks those binaries.
@execfiles = %x[find . -executable -type f ! \\( -name \"*.so*\" -o -name \"*.a\" -o -name \"Xwayland.elf\" -o -name \"sommelier.elf\" \\) -exec sh -c \"file -i \'
{}\
' | grep -q \'
executable
;
charset
=
binary
\
'\" \\; -print].chomp
unless @execfiles.empty? or @execfiles.nil?
puts "Using upx to shrink binaries."
@execfiles.each_line do |execfile|
...
...
lib/const.rb
View file @
1d5d78d7
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.11.
7
'
CREW_VERSION
=
'1.11.
8
'
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