Skip to content

chore: bump sdl version in appimage#2288

Merged
briaguya0 merged 1 commit intoHarbourMasters:develop-bradleyfrom
briaguya0:sdl-version-bump
Dec 28, 2022
Merged

chore: bump sdl version in appimage#2288
briaguya0 merged 1 commit intoHarbourMasters:develop-bradleyfrom
briaguya0:sdl-version-bump

Conversation

@briaguya0
Copy link
Contributor

@briaguya0 briaguya0 commented Dec 27, 2022

@briaguya0
Copy link
Contributor Author

tested the appimage and it's working for me

@@ -101,9 +101,9 @@ jobs:
- name: Install latest SDL
run: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debatably tied to this scope: in order to make these upgrades easier in the future, we should probably add an env key to this step that specifies the SDL version.. so we only have to replace it once.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same could be done for SDL_net

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like that may be overoptimizing a little, especially if the next release is going to be SDL3-..., the env var would need to be something like SDL_ARCHIVE_NAME, we'd need to set it to SDL2-2.26.1, and the wget URL/tar command would need to append .tar.gz

I'd feel better about it if we could have an env var and call it SDL_VERSION and set it to 2.26.1

Anyways, I'm not opposed to making the change, just noting that it feels less than perfect to me

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    - name: Build SDL2
      run: |
        SDL2VER=2.26.1
        export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
        wget https://libsdl.org/release/SDL2-${SDL2VER}.tar.gz
        tar -xzf SDL2-${SDL2VER}.tar.gz
        cd SDL2-${SDL2VER}
        ./configure
        make -j 10
        sudo make install
        sudo cp -av /lib/libSDL* /lib/x86_64-linux-gnu/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qurious-pixel the point is the next version will be sdl3, so sdl2ver won't work then

Copy link
Contributor

@dcvz dcvz Dec 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point @briaguya-ai , let’s leave it like this for now. I think it’s still better to use a general version number even if the SDL2 will change but no hard preference

@briaguya0 briaguya0 merged commit ecb10e6 into HarbourMasters:develop-bradley Dec 28, 2022
th-2021 pushed a commit to th-2021/Shipwright-cmake that referenced this pull request Dec 28, 2022
Co-authored-by: briaguya <briaguya@alice>
@briaguya0 briaguya0 deleted the sdl-version-bump branch January 18, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants