renamed lbrynet to lbrynet-daemon, removed some unused code, lowercased daemon release name
This commit is contained in:
parent
b81add382b
commit
666fd5a490
15 changed files with 34 additions and 36 deletions
17
.gitignore
vendored
17
.gitignore
vendored
|
@ -1,10 +1,13 @@
|
||||||
app/dist
|
|
||||||
app/node_modules
|
|
||||||
node_modules
|
node_modules
|
||||||
LBRY-darwin-x64
|
LBRY-darwin-x64
|
||||||
dist
|
dist
|
||||||
lbrynet/build
|
|
||||||
lbrynet/venv
|
/app/dist
|
||||||
.#*
|
/app/node_modules
|
||||||
build_venv
|
/build_venv
|
||||||
*.pyc
|
/lbrynet-daemon/build
|
||||||
|
/lbrynet-daemon/venv
|
||||||
|
/.idea
|
||||||
|
|
||||||
|
*.pyc
|
||||||
|
.#*
|
|
@ -121,7 +121,7 @@ function shutdownDaemon() {
|
||||||
// TODO: In this case, we didn't start the process so I'm hesitant
|
// TODO: In this case, we didn't start the process so I'm hesitant
|
||||||
// to shut it down. We might want to send a stop command
|
// to shut it down. We might want to send a stop command
|
||||||
// though instead of just letting it run.
|
// though instead of just letting it run.
|
||||||
console.log('Not killing lbrynet because we did not start it')
|
console.log('Not killing lbrynet daemon because we did not start it')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (win) {
|
if (win) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ install:
|
||||||
- npm install
|
- npm install
|
||||||
- cd ..
|
- cd ..
|
||||||
# create lbrynet-daemon executable
|
# create lbrynet-daemon executable
|
||||||
- cd lbrynet
|
- cd lbrynet-daemon
|
||||||
- ps: .\build.ps1
|
- ps: .\build.ps1
|
||||||
- cd ..
|
- cd ..
|
||||||
# build ui
|
# build ui
|
||||||
|
@ -32,7 +32,7 @@ install:
|
||||||
- node_modules\.bin\webpack
|
- node_modules\.bin\webpack
|
||||||
- ps: Copy-Item dist ..\app\ -recurse
|
- ps: Copy-Item dist ..\app\ -recurse
|
||||||
- cd ..
|
- cd ..
|
||||||
- ps: Copy-Item lbrynet\dist\lbrynet-daemon.exe app\dist
|
- ps: Copy-Item lbrynet-daemon\dist\lbrynet-daemon.exe app\dist
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
# build electron app
|
# build electron app
|
||||||
|
|
23
build.sh
23
build.sh
|
@ -4,6 +4,8 @@ set -o xtrace
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
cd "$ROOT"
|
||||||
|
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
ICON="$ROOT/build/icon.icns"
|
ICON="$ROOT/build/icon.icns"
|
||||||
else
|
else
|
||||||
|
@ -11,9 +13,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FULL_BUILD="${FULL_BUILD:-false}"
|
FULL_BUILD="${FULL_BUILD:-false}"
|
||||||
if [ -n "${TEAMCITY_VERSION:-}" ]; then
|
if [ -n "${TEAMCITY_VERSION:-}" -o -n "${APPVEYOR:-}" ]; then
|
||||||
FULL_BUILD="true"
|
|
||||||
elif [ -n "${APPVEYOR:-}" ]; then
|
|
||||||
FULL_BUILD="true"
|
FULL_BUILD="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -30,18 +30,19 @@ if [ "$FULL_BUILD" == "true" ]; then
|
||||||
source "$VENV/bin/activate"
|
source "$VENV/bin/activate"
|
||||||
set -u
|
set -u
|
||||||
pip install -U pip setuptools pyinstaller
|
pip install -U pip setuptools pyinstaller
|
||||||
python set_version.py
|
python "$ROOT/set_version.py"
|
||||||
python set_build.py
|
python "$ROOT/set_build.py"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
pushd $ROOT/app
|
(
|
||||||
npm install
|
cd "$ROOT/app"
|
||||||
popd
|
npm install
|
||||||
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$ROOT/lbrynet"
|
cd "$ROOT/lbrynet-daemon"
|
||||||
pip install -r posix.txt
|
pip install -r linux_macos.txt
|
||||||
pyinstaller -y lbry.onefile.spec
|
pyinstaller -y lbry.onefile.spec
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -54,7 +55,7 @@ popd
|
||||||
cp -r dist "$ROOT/app/dist"
|
cp -r dist "$ROOT/app/dist"
|
||||||
)
|
)
|
||||||
|
|
||||||
mv "$ROOT/lbrynet/dist/lbrynet-daemon" "$ROOT/app/dist"
|
mv "$ROOT/lbrynet-daemon/dist/lbrynet-daemon" "$ROOT/app/dist"
|
||||||
|
|
||||||
|
|
||||||
if [ "$FULL_BUILD" == "true" ]; then
|
if [ "$FULL_BUILD" == "true" ]; then
|
||||||
|
|
BIN
lbrynet-daemon/gmpy-1.17-cp27-none-win32.whl
Normal file
BIN
lbrynet-daemon/gmpy-1.17-cp27-none-win32.whl
Normal file
Binary file not shown.
|
@ -6,7 +6,7 @@ import lbryum
|
||||||
|
|
||||||
|
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
if os.path.basename(cwd) != 'lbrynet':
|
if os.path.basename(cwd) != 'lbrynet-daemon':
|
||||||
raise Exception('The build needs to be run from the same directory as the spec file')
|
raise Exception('The build needs to be run from the same directory as the spec file')
|
||||||
repo_base = os.path.abspath(os.path.join(cwd, '..'))
|
repo_base = os.path.abspath(os.path.join(cwd, '..'))
|
||||||
|
|
|
@ -10,7 +10,7 @@ googlefinance==0.7
|
||||||
jsonrpc==1.2
|
jsonrpc==1.2
|
||||||
jsonrpclib==0.1.7
|
jsonrpclib==0.1.7
|
||||||
jsonschema==2.5.1
|
jsonschema==2.5.1
|
||||||
# for electron, we install lbryum, lbrynet using submodules
|
# for electron, we install lbryum, lbry using submodules
|
||||||
../lbryum
|
../lbryum
|
||||||
../lbry
|
../lbry
|
||||||
pbkdf2==1.3
|
pbkdf2==1.3
|
|
@ -158,7 +158,7 @@ def is_behind(base, branch):
|
||||||
|
|
||||||
def check_bumpversion():
|
def check_bumpversion():
|
||||||
|
|
||||||
def requireNewVersion():
|
def require_new_version():
|
||||||
print 'Install bumpversion: pip install -U git+https://github.com/lbryio/bumpversion.git'
|
print 'Install bumpversion: pip install -U git+https://github.com/lbryio/bumpversion.git'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
@ -166,9 +166,9 @@ def check_bumpversion():
|
||||||
output = subprocess.check_output(['bumpversion', '-v'], stderr=subprocess.STDOUT)
|
output = subprocess.check_output(['bumpversion', '-v'], stderr=subprocess.STDOUT)
|
||||||
output = output.strip()
|
output = output.strip()
|
||||||
if output != 'bumpversion 0.5.4-lbry':
|
if output != 'bumpversion 0.5.4-lbry':
|
||||||
requireNewVersion()
|
require_new_version()
|
||||||
except (subprocess.CalledProcessError, OSError) as err:
|
except (subprocess.CalledProcessError, OSError) as err:
|
||||||
requireNewVersion()
|
require_new_version()
|
||||||
|
|
||||||
|
|
||||||
def get_part(args, name):
|
def get_part(args, name):
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
import argparse
|
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import random
|
|
||||||
import re
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
import github
|
import github
|
||||||
import requests
|
import requests
|
||||||
import uritemplate
|
import uritemplate
|
||||||
|
@ -17,8 +13,7 @@ import uritemplate
|
||||||
from lbrynet.core import log_support
|
from lbrynet.core import log_support
|
||||||
|
|
||||||
|
|
||||||
def main(args=None):
|
def main():
|
||||||
current_tag = None
|
|
||||||
try:
|
try:
|
||||||
current_tag = subprocess.check_output(
|
current_tag = subprocess.check_output(
|
||||||
['git', 'describe', '--exact-match', 'HEAD']).strip()
|
['git', 'describe', '--exact-match', 'HEAD']).strip()
|
||||||
|
@ -133,7 +128,7 @@ def _curl_uploader(upload_uri, asset_to_upload, token):
|
||||||
'--data-binary', '@-',
|
'--data-binary', '@-',
|
||||||
upload_uri
|
upload_uri
|
||||||
]
|
]
|
||||||
#'-d', '{"some_key": "some_value"}',
|
# '-d', '{"some_key": "some_value"}',
|
||||||
print 'Calling curl:'
|
print 'Calling curl:'
|
||||||
print cmd
|
print cmd
|
||||||
print
|
print
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""Set the build version to be 'dev', 'qa', 'rc', 'release'"""
|
"""Set the build version to be 'dev', 'qa', 'rc', 'release'"""
|
||||||
|
|
||||||
import json
|
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
|
@ -19,9 +19,9 @@ def main():
|
||||||
def get_system_label():
|
def get_system_label():
|
||||||
system = platform.system()
|
system = platform.system()
|
||||||
if system == 'Darwin':
|
if system == 'Darwin':
|
||||||
return 'macOS'
|
return 'macos'
|
||||||
else:
|
else:
|
||||||
return system
|
return system.lower()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue