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

chore: bump sdl version in appimage #2288

Merged

Conversation

briaguya-ai
Copy link
Contributor

@briaguya-ai briaguya-ai commented Dec 27, 2022

@briaguya-ai
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

@briaguya-ai briaguya-ai 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>
@briaguya-ai briaguya-ai 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.

None yet

3 participants