-
Notifications
You must be signed in to change notification settings - Fork 2.4k
enhancement: fix EGL_BAD_PARAMETER bug for local dev builds #5706
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,4 +49,5 @@ src-tauri/resources/bin | |
| # Helper tools | ||
| .opencode | ||
| OpenCode.md | ||
| archive/ | ||
| archive/ | ||
| .cache/ | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||
| #!/usr/bin/env bash | ||||||
|
|
||||||
| # wrapper script to pin linuxdeploy version and inject environment variables into the | ||||||
| # build process. While yarn supports injecting environment vairables via env files, | ||||||
| # this applies to all yarn scripts. Using a wrapper allows granular control over | ||||||
| # when environment variables are injected, and avoids tainting the system .cache | ||||||
|
|
||||||
| # avoid redownloading corepack if possible | ||||||
| export COREPACK_HOME=${COREPACK_HOME:-${XDG_CACHE_HOME:-$HOME/.cache}/node/corepack} | ||||||
| # move cache home to <project root>/.cache | ||||||
| export XDG_CACHE_HOME=${PWD}/.cache | ||||||
|
|
||||||
| LINUXDEPLOY_VER="1-alpha-20250213-2" | ||||||
| LINUXDEPLOY="$XDG_CACHE_HOME/tauri/linuxdeploy-$LINUXDEPLOY_VER-x86_64.AppImage" | ||||||
| SYMLINK="$XDG_CACHE_HOME/tauri/linuxdeploy-x86_64.AppImage" | ||||||
|
|
||||||
| mkdir -p "$XDG_CACHE_HOME/tauri" | ||||||
|
|
||||||
| if [ ! -f $LINUXDEPLOY ]; then | ||||||
| GLOB_PATTERN="$XDG_CACHE_HOME/tauri/linuxdeploy-*-x86_64.AppImage" | ||||||
| rm $GLOB_PATTERN | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using 'rm -f' and quoting the glob (e.g., rm -f "$GLOB_PATTERN") to avoid errors if no files match.
Suggested change
|
||||||
| wget "https://github.com/linuxdeploy/linuxdeploy/releases/download/$LINUXDEPLOY_VER/linuxdeploy-x86_64.AppImage" -O "$LINUXDEPLOY" | ||||||
| chmod a+x "$LINUXDEPLOY" | ||||||
| fi | ||||||
|
|
||||||
| rm $SYMLINK | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use 'rm -f' with quotes here as well to safely remove the symlink (e.g., rm -f "$SYMLINK").
Suggested change
|
||||||
| ln -s "$LINUXDEPLOY" "$SYMLINK" | ||||||
|
|
||||||
| "$@" | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quote the variable when testing file existence to prevent word splitting (e.g., use "[ ! -f "$LINUXDEPLOY" ]").