Skip to content

Commit

Permalink
match on OS for extension
Browse files Browse the repository at this point in the history
Co-authored-by: Casper Lamboo <[email protected]>
  • Loading branch information
jellespijker and casperlamboo authored Feb 20, 2024
1 parent 75885ab commit de12ba8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ def build(self):
self.run(f"sentry-cli --auth-token {os.environ['SENTRY_TOKEN']} releases finalize -o {sentry_org} -p {sentry_project} {self.version}")

def package(self):
if self.settings.os == "Windows":
ext = ".exe"
elif self.settings.os == "Emscripten":
ext = ".js"
else:
ext = ""
match self.setting.os:
case "Windows":
ext = ".exe"
case "Emscripten":
ext = ".js"
case other:
ext = ""
copy(self, f"CuraEngine{ext}", src=self.build_folder, dst=path.join(self.package_folder, "bin"))
copy(self, f"*.d.ts", src=self.build_folder, dst=path.join(self.package_folder, "bin"))
copy(self, f"_CuraEngine.*", src=self.build_folder, dst=path.join(self.package_folder, "lib"))
Expand Down

0 comments on commit de12ba8

Please sign in to comment.