Skip to content

Commit 2f02366

Browse files
authored
Merge pull request #34 from linuxserver/wayland-default
make wayland default
2 parents 4ff0186 + dc760b7 commit 2f02366

6 files changed

Lines changed: 29 additions & 27 deletions

File tree

.github/workflows/external_trigger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
3030
echo "> External trigger running off of master branch. To disable this trigger, add \`bambustudio_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
3131
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
32-
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases/latest" | jq -r '. | .tag_name')
33-
echo "Type is \`github_stable\`" >> $GITHUB_STEP_SUMMARY
32+
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases" | jq -r '.[0] | .tag_name')
33+
echo "Type is \`github_devel\`" >> $GITHUB_STEP_SUMMARY
3434
if grep -q "^bambustudio_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
3535
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3636
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
@@ -111,7 +111,7 @@ jobs:
111111
exit 0
112112
else
113113
assets=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases/tags/${EXT_RELEASE}" | jq -r '.assets[].browser_download_url')
114-
if grep -q "Bambu_Studio_ubuntu-24.04" <<< "${assets}"; then
114+
if grep -q "BambuStudio_ubuntu-24.04" <<< "${assets}"; then
115115
artifacts_found="true"
116116
else
117117
artifacts_found="false"

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ LABEL maintainer="thelamer"
1111

1212
# title
1313
ENV TITLE=BambuStudio \
14-
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
14+
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
15+
NO_GAMEPAD=true \
16+
PIXELFLUX_WAYLAND=true
1517

1618
RUN \
1719
echo "**** add icon ****" && \
@@ -35,12 +37,10 @@ RUN \
3537
libwebkit2gtk-4.1-0 \
3638
libwx-perl && \
3739
echo "**** install bambu studio from appimage ****" && \
38-
if [ -z ${BAMBUSTUDIO_VERSION+x} ]; then \
39-
BAMBUSTUDIO_VERSION=$(curl -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases/latest" \
40-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
41-
fi && \
42-
RELEASE_URL=$(curl -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases/latest" | awk '/url/{print $4;exit}' FS='[""]') && \
43-
DOWNLOAD_URL=$(curl -sX GET "${RELEASE_URL}" | awk '/browser_download_url.*ubuntu-24.04/{print $4;exit}' FS='[""]') && \
40+
RELEASE_URL=$(curl -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases" \
41+
| awk '/url/{print $4;exit}' FS='[""]') && \
42+
DOWNLOAD_URL=$(curl -sX GET "${RELEASE_URL}" \
43+
| awk '/browser_download_url.*ubuntu-24.04/{print $4;exit}' FS='[""]') && \
4444
cd /tmp && \
4545
curl -o \
4646
/tmp/bambu.app -L \

Jenkinsfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,23 @@ pipeline {
145145
/* ########################
146146
External Release Tagging
147147
######################## */
148-
// If this is a stable github release use the latest endpoint from github to determine the ext tag
149-
stage("Set ENV github_stable"){
150-
steps{
151-
script{
152-
env.EXT_RELEASE = sh(
153-
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
154-
returnStdout: true).trim()
155-
}
156-
}
148+
// If this is a devel github release use the first in an array from github to determine the ext tag
149+
stage("Set ENV github_devel"){
150+
steps{
151+
script{
152+
env.EXT_RELEASE = sh(
153+
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases | jq -r '.[0] | .tag_name' ''',
154+
returnStdout: true).trim()
155+
}
156+
}
157157
}
158158
// If this is a stable or devel github release generate the link for the build message
159159
stage("Set ENV github_link"){
160-
steps{
161-
script{
162-
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
163-
}
164-
}
160+
steps{
161+
script{
162+
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
163+
}
164+
}
165165
}
166166
// Sanitize the release tag and strip illegal docker or github characters
167167
stage("Sanitize tag"){
@@ -1031,7 +1031,7 @@ pipeline {
10311031
"type": "commit",\
10321032
"tagger": {"name": "LinuxServer-CI","email": "[email protected]","date": "'${GITHUB_DATE}'"}}'
10331033
echo "Pushing New release for Tag"
1034-
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. |.body' > releasebody.json
1034+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases | jq -r '.[0] |.body' > releasebody.json
10351035
jq -n \
10361036
--arg tag_name "$META_TAG" \
10371037
--arg target_commitish "master" \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
642642

643643
## Versions
644644

645+
* **11.04.26:** - Ingest from pre-release, make Wayland default disable with PIXELFLUX_WAYLAND=false.
645646
* **28.12.25:** - Add Wayland init logic.
646647
* **31.08.25:** - Update AppImage ingestion.
647648
* **14.08.25:** - Rebase to Ubuntu Noble to ingest approved appimage.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# jenkins variables
44
project_name: docker-bambustudio
5-
external_type: github_stable
5+
external_type: github_devel
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
99
external_artifact_check: |
1010
assets=$(curl -u "${{ '{{' }} secrets.CR_USER {{ '}}' }}:${{ '{{' }} secrets.CR_PAT {{ '}}' }}" -sX GET "https://api.github.com/repos/bambulab/BambuStudio/releases/tags/${EXT_RELEASE}" | jq -r '.assets[].browser_download_url')
11-
if grep -q "Bambu_Studio_ubuntu-24.04" <<< "${assets}"; then
11+
if grep -q "BambuStudio_ubuntu-24.04" <<< "${assets}"; then
1212
artifacts_found="true"
1313
else
1414
artifacts_found="false"

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ init_diagram: |
109109
"bambustudio:latest" <- Base Images
110110
# changelog
111111
changelogs:
112+
- {date: "11.04.26:", desc: "Ingest from pre-release, make Wayland default disable with PIXELFLUX_WAYLAND=false."}
112113
- {date: "28.12.25:", desc: "Add Wayland init logic."}
113114
- {date: "31.08.25:", desc: "Update AppImage ingestion."}
114115
- {date: "14.08.25:", desc: "Rebase to Ubuntu Noble to ingest approved appimage."}

0 commit comments

Comments
 (0)