fix build (publish): Copy libspark.dll to publish dir
Bugs (fixed):
* Spark.exe generated by the installer crashes immediately on launch because
it cannot find the libspark.dll.
Cause: Sure enough, libspark.dll isn't in the install folder
(AppData\Roaming\bts\Spark)
* Build libspark explicitly
* Fix libspark.dll copy src path
This commit is contained in:
1 parent
b02f814c65
commit
7019b8f9e8
3 files changed
+3
-3
No files matched your search
@@ -310,7 +310,7 @@ def build(
|
||||
build_cmd_steps.append(f'cd {Path(t.path).parent}')
|
||||
build_cmd_steps.append('dotnet publish -c Release -r win-x64 --sc')
|
||||
build_cmd_steps.append(
|
||||
f'copy {bins.joinpath("libspark.dll")} {bins.joinpath("publish")}')
|
||||
f'copy {bins.joinpath("libspark.dll")} {bins.joinpath("win-x64", "publish")}')
|
||||
|
||||
build_cmd = ' && '.join(build_cmd_steps)
|
||||
proc_results.append(subprocess.run(build_cmd))
|
||||
|
||||
@@ -42,7 +42,7 @@ class SparkPaths:
|
||||
|
||||
@staticmethod
|
||||
def client_bins(build_root=_default_build(), configuration='Release'):
|
||||
return build_root.joinpath(configuration, 'bin', 'net6.0-windows', 'win-x64')
|
||||
return build_root.joinpath(configuration, 'bin', 'net6.0-windows')
|
||||
|
||||
@staticmethod
|
||||
def client_sln():
|
||||
|
||||
@@ -41,7 +41,7 @@ def _main():
|
||||
configuration='release',
|
||||
restore=True,
|
||||
build_dir=output_dir,
|
||||
targets=['publish'],
|
||||
targets=['libspark', 'publish'],
|
||||
verbosity=args.verbosity)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user