- Change version date in version.h, snapcraft.yaml (Linux command line), qt/bibref.iss (Windows/Qt)
- Add new release version and description in qt/io.github.kovzol.bibref.metainfo.xml
- Commit code and push to GitHub
- Get last commit hashcode from GitHub, download latest zip and get sha256sum, then update qt/io.github.kovzol.bibref.yaml accordingly
- Change working directory to
qt/and runflatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir io.github.kovzol.bibref.yaml && flatpak build-bundle repo bibref.flatpak io.github.kovzol.bibref && flatpak install bibref.flatpak && flatpak run io.github.kovzol.bibref - Get
bibref.flatpakand share it on GitHub/Releases later - Create a new branch at https://github.com/flathub/io.github.kovzol.bibref, update io.github.kovzol.bibref.yaml, commit, make a pull request and finally, merge
- Commit code and push to GitHub (optional)
- Update Snapcraft: trigger a new build, release the new version
- Pull the newest version
- Build both the cli and Qt versions (the latter with -DWEBENGINE=ON)
- Run the cli version and recreate the
bibref-addbooks-cachefolder to have it up-to-date - Remove
qt/bin/if it exists - Change working directory to
qt/ - If needed, add the Qt installation path to the PATH, something like this:
export PATH=/Users/.../Qt/6.10.2/macos/bin/:$PATH - Run
./deploy-macby adding the Qt build folder and thebibref-addbooks-cachefolder locations as parameters - Get
bin/bibref-qt.dmgand share it on GitHub/Releases later
See docker/qt/windows/Dockerfile.
Obsoleted:
- Pull the newest version (via Windows Git)
- Build the Qt version (via MSYS2/MINGW64)
- Copy the
bibref-addbooks-cachefolder from a working platform in the build folder - Change working directory to
qt/. - Run the
./create-windows-folderscript and add the build folder as parameter - Optionally, open a native Windows command prompt, change the working folder to bibref-qt-YYYY-MM-DD\ and test the program by running the executable
bibref-qt.exe - Run the
./create-windows-zipscript (in theqt/folder) - Get
bibref-qt-YYYY-MM-DD.zipand share it on GitHub/Releases later - Start the Inno Setup Compiler with config file
bibref.issand create the installer - Get
bibref-setup.exeand share it on GitHub/Releases later
See docker/cli/web/Dockerfile and docker/qt/web/Dockerfile.
Obsoleted:
- Pull the newest version
- Build the native version
- Run the cli version (from the main folder) and recreate the
bibref-addbooks-cachefolder to have it up-to-date - Remove the files
bibref.jsandbibref.datafrom the build folder of the web version (if they already exist) - Build the web version and install it
- Copy the folder
html-outputfrom the web build folder over the public web folder, renameindex.htmltoindex-midi.htmland put a symlinkindex.htmltoindex-jt-dt.html - To create the Qt version (as WebAssembly build): remove
the files
bibref-qt.jsandbibref-qt.datafrom the build folder of the web version (if they already exist), build the Qt web version and install it, then copy the folderhtml-outputfrom the web build folder over the public web folder, finally, put a symlinkindex.htmltobibref-qt.html
- If everything works, symlink the new web versions as stable version.
- Do a release on GitHub.
- Update GitHub Wiki by mentioning new features.