electrum-nmc: Don't include qrcode if GUI disabled

This commit is contained in:
JeremyRand 2019-10-02 04:44:06 +00:00 committed by JeremyRand
parent ccb8fe011c
commit ba977fa612
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570
2 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ cd /var/tmp/build/[% project %]/[% project %]-*
mkdir packages
cd packages
[% FOREACH dep = ['aiohttp', 'aiohttp_socks', 'aiorpcx', 'async_timeout', 'attr', 'certifi', 'chardet', 'colorama', 'dns', 'ecdsa', 'idna', 'idna_ssl', 'jsonrpclib', 'multidict', 'pyaes', 'qrcode', 'six', 'typing_extensions', 'yarl'] -%]
[% FOREACH dep = ['aiohttp', 'aiohttp_socks', 'aiorpcx', 'async_timeout', 'attr', 'certifi', 'chardet', 'colorama', 'dns', 'ecdsa', 'idna', 'idna_ssl', 'jsonrpclib', 'multidict', 'pyaes', 'six', 'typing_extensions', 'yarl'] -%]
tar -C . -xf $rootdir/[% c('input_files_by_name/' _ dep) %]
[% END -%]
@ -18,6 +18,10 @@ cd packages
tar -C . -xf $rootdir/[% c('input_files_by_name/' _ 'qdarkstyle') %]
[% END %]
[% IF c("var/enable_qt") || c("var/enable_kivy") %]
tar -C . -xf $rootdir/[% c('input_files_by_name/' _ 'qrcode') %]
[% END %]
tar -C . -xf $rootdir/[% c('input_files_by_name/protobuf') %]/python-protobuf.tar.gz
cd ../

View File

@ -52,6 +52,7 @@ input_files:
enable: '[% c("var/enable_qt") %]'
- project: qrcode
name: qrcode
enable: '[% c("var/enable_qt") || c("var/enable_kivy") %]'
- project: six
name: six
- project: typing_extensions