Skip to content

Commit 8f39c96

Browse files
committed
Fix Linux Qt viewer packaging script
1 parent 52c9121 commit 8f39c96

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/viewer-qt.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,24 @@ jobs:
7373
7474
Copy-Item -LiteralPath $exePath -Destination $package
7575
76-
@"
77-
#!/usr/bin/env bash
78-
set -e
79-
APP_DIR="\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" && pwd)"
80-
exec "\$APP_DIR/q1view_viewer_qt" "\$@"
81-
"@ | Out-File "$package/q1view-viewer-qt.sh" -Encoding utf8
76+
@(
77+
'#!/usr/bin/env bash',
78+
'set -e',
79+
'APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"',
80+
'exec "$APP_DIR/q1view_viewer_qt" "$@"'
81+
) | Set-Content "$package/q1view-viewer-qt.sh" -Encoding utf8
8282
chmod +x "$package/q1view-viewer-qt.sh"
8383
chmod +x "$package/q1view_viewer_qt"
8484
85-
@"
86-
q1view_viewer_qt Linux artifact
87-
88-
Run ./q1view-viewer-qt.sh to start the experimental Qt viewer.
89-
90-
Install Qt 6 runtime libraries and the Qt xcb platform plugin on the target system if the viewer does not start.
91-
92-
Next packaging step: replace this with an AppImage/AppDir bundle.
93-
"@ | Out-File "$package/README-linux-runtime.txt" -Encoding utf8
85+
@(
86+
'q1view_viewer_qt Linux artifact',
87+
'',
88+
'Run ./q1view-viewer-qt.sh to start the experimental Qt viewer.',
89+
'',
90+
'Install Qt 6 runtime libraries and the Qt xcb platform plugin on the target system if the viewer does not start.',
91+
'',
92+
'Next packaging step: replace this with an AppImage/AppDir bundle.'
93+
) | Set-Content "$package/README-linux-runtime.txt" -Encoding utf8
9494
}
9595
9696
- name: Upload package

0 commit comments

Comments
 (0)