Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: load model fail on windows #4437

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

louis-jan
Copy link
Contributor

Describe Your Changes

This pull request aims to resolve the issue where the app fails to load the model on Windows due to the absence of CUDA Shared Libraries since #4334.

Since those shared libraries are quite heavy, the proposed approach is to create symlinks to the user's extension installation folder so that the engine can load them accordingly. This update is quite similar to how we set up default local engine variants.

CleanShot 2025-01-12 at 16 22 46@2x

This PR also includes a minor improvement to run scripts to function on Windows development machines.

Proposed changes

This pull request includes several changes to improve cross-platform compatibility, add new dependencies, and enhance functionality. The most important changes include modifications to the package.json files to support platform-specific scripts, the addition of new dependencies, and updates to the index.ts file to create symbolic links for shared libraries.

Cross-platform compatibility improvements:

  • electron/package.json: Split the dev script into dev:darwin:linux and dev:windows for platform-specific development commands and added run-script-os for handling platform-specific scripts.
  • extensions/engine-management-extension/package.json: Added platform-specific codesign scripts and updated the build:publish script to use run-script-os for platform-specific code signing.

Dependency additions:

Functionality enhancements:

Dependency removals:

  • package.json: Removed run-script-os dependency as it is no longer needed.

@louis-jan louis-jan requested a review from urmauur January 12, 2025 09:27
@github-actions github-actions bot added the type: bug Something isn't working label Jan 12, 2025
Copy link
Contributor

Barecheck - Code coverage report

Total: 68.61%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

Copy link
Contributor

This is the build for this pull request. You can download it from the Artifacts section here: Build URL.

@louis-jan louis-jan merged commit 7fe92c1 into dev Jan 13, 2025
21 checks passed
@louis-jan louis-jan deleted the fix/load-model-fail-on-windows-latest-dev branch January 13, 2025 02:21
@github-actions github-actions bot added this to the v0.5.14 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants