joaorb64 / TournamentStreamHelper

MIT License
102 stars 39 forks source link

Embed small source files inside executable #784

Closed ladyisatis closed 1 week ago

ladyisatis commented 1 week ago

Supersedes the previous PR

Makes it so that the following is embedded inside TSH.exe instead of referenced via filesystem:

        ('../assets/contributors.txt', 'assets'),
        ('../assets/versions.json', 'assets'),
        ('../src/i18n/tournament_term/*.json', 'src/i18n/tournament_term'),
        ('../src/i18n/*.json', 'src/i18n'),
        ('../src/i18n/*.qm', 'src/i18n'),
        ('../src/layout/*', 'src/layout'),
        ('../src/TournamentDataProvider/*.txt', 'src/TournamentDataProvider'),
        ('../stage_strike_app/build/*', 'stage_strike_app/build')

Also inside scripts, included gen_release.sh (Linux) / gen_release.ps1 (Windows) to generate a release.zip that only includes assets, layout, user_data and TSH.exe so distributing new builds is slimmer.