Skip to content

Commit

Permalink
feat: single binary
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Jun 17, 2024
1 parent ffe2c20 commit 2f7b372
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const TempDir = `${OperateDirectory}/temp`;
const VersionFile = `${OperateDirectory}/version.txt`;
const LogFile = `${OperateDirectory}/logs.txt`;
const OperateInstallationLog = `${os.homedir()}/operate.log`;
const OperateCmd = `${process.cwd()}/dist/pearl/pearl`;
const OperateCmd = `${process.cwd()}/dist/pearl`;
const Env = {
...process.env,
PATH: `${process.env.PATH}:/opt/homebrew/bin:/usr/local/bin`,
Expand Down
6 changes: 3 additions & 3 deletions operate/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _setup_agent(working_dir: Path) -> None:
encoding="utf-8",
)

abin = os.getcwd() + '/dist/aea_bin/aea_bin'
abin = 'aea_bin'
# Fetch agent
_run_cmd(
args=[
Expand Down Expand Up @@ -430,7 +430,7 @@ def _setup_agent(working_dir: Path) -> None:
def _start_agent(working_dir: Path) -> None:
"""Start agent process."""
env = json.loads((working_dir / "agent.json").read_text(encoding="utf-8"))
aea_bin = os.getcwd() + '/dist/aea_bin/aea_bin'
aea_bin = 'aea_bin'
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[aea_bin, "run"],
cwd=working_dir / "agent",
Expand All @@ -450,7 +450,7 @@ def _start_agent(working_dir: Path) -> None:
def _start_tendermint(working_dir: Path) -> None:
"""Start tendermint process."""
env = json.loads((working_dir / "tendermint.json").read_text(encoding="utf-8"))
tendermint_com = os.getcwd() + "/dist/tendermint/tendermint"
tendermint_com = "tendermint"
process = subprocess.Popen( # pylint: disable=consider-using-with # nosec
args=[tendermint_com],
cwd=working_dir,
Expand Down
14 changes: 4 additions & 10 deletions tendermint.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,20 @@ pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
exclude_binaries=True,
name='tendermint',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='tendermint',
)

0 comments on commit 2f7b372

Please sign in to comment.