Skip to content

Commit

Permalink
Chore: Change to io.github.TokTok instead of com.github.TokTok
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperNinja-4965 committed Jan 2, 2025
1 parent 6b2a317 commit 8bd7476
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ jobs:
- name: Point flathub descriptor at the release tag
if: contains(github.ref, 'refs/tags/v')
run: flatpak/localize_flathub_descriptor.py
--flathub-manifest flatpak/com.github.TokTok.qTox.json
--output flatpak/com.github.TokTok.qTox.json
--flathub-manifest flatpak/io.github.TokTok.qTox.json
--output flatpak/io.github.TokTok.qTox.json
--git-tag "${{ steps.get_version.outputs.version_tag }}"
- name: Install docker-compose
run: sudo apt-get install -y docker-compose
Expand Down Expand Up @@ -501,7 +501,7 @@ jobs:
- name: Install flatpak
run: flatpak install --user -y --bundle qtox.flatpak
- name: Run flatpak
run: flatpak run com.github.TokTok.qTox --help
run: flatpak run io.github.TokTok.qTox --help
env:
QT_QPA_PLATFORM: offscreen

Expand Down
4 changes: 2 additions & 2 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ In the PRs in this step, only make pull requests. Do not merge, yet.
release.
- Make a PR writing a short blog post for https://github.com/qTox/blog/.
- Make a PR on our [Flathub repository] copying the local manifest
[`flatpak/com.github.TokTok.qTox.json`] into the repository.
[`flatpak/io.github.TokTok.qTox.json`] into the repository.
- Ensure the build passed for qTox on all architectures on
[the Flathub build bot]

Expand Down Expand Up @@ -266,6 +266,6 @@ helping for a while, ask to be added to the `TokTok` organization on GitHub.
[`tools/format-code.sh`]: /tools/format-code.sh
[`tools/validate_pr.py`]: /tools/validate_pr.py
[Flathub repository]: https://github.com/flathub/io.github.qtox.qTox
[`flatpak/com.github.TokTok.qTox.json`]: /flatpak/com.github.TokTok.qTox.json
[`flatpak/io.github.TokTok.qTox.json`]: /flatpak/io.github.TokTok.qTox.json
[`flatpak/update_flathub_descriptor_dependencies.py`]: /flatpak/update_flathub_descriptor_dependencies.py
[the Flathub build bot]: https://flathub.org/builds/#/
4 changes: 2 additions & 2 deletions cmake/Installation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ else()
include(GNUInstallDirs)
# follow the xdg-desktop specification
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
install(FILES "res/com.github.TokTok.qTox.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo")
install(FILES "com.github.TokTok.qTox.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "res/io.github.TokTok.qTox.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo")
install(FILES "io.github.TokTok.qTox.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")

# Install application icons according to the XDG spec
set(ICON_SIZES 14 16 22 24 32 36 48 64 72 96 128 192 256 512)
Expand Down
4 changes: 2 additions & 2 deletions flatpak/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -exuo pipefail

# use multiple cores when building
export MAKEFLAGS="-j$(nproc)"
FLATPAK_DESCRIPTOR=$(dirname "$(realpath "$0")")/com.github.TokTok.qTox.json
FLATPAK_DESCRIPTOR=$(dirname "$(realpath "$0")")/io.github.TokTok.qTox.json

# If $FLATPAK_BUILD is set, use it as the build directory
if [ -n "${FLATPAK_BUILD:-}" ]; then
Expand All @@ -21,7 +21,7 @@ fi
flatpak-builder --ccache --disable-rofiles-fuse --install-deps-from=flathub --force-clean --repo=qtox-repo _build-flatpak "$FLATPAK_DESCRIPTOR"

# Create a bundle for distribution
flatpak build-bundle qtox-repo qtox.flatpak com.github.TokTok.qTox
flatpak build-bundle qtox-repo qtox.flatpak io.github.TokTok.qTox

# If $FLATPAK_BUILD is set, copy the bundle to the build directory
if [ -n "${FLATPAK_BUILD:-}" ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app-id": "com.github.TokTok.qTox",
"app-id": "io.github.TokTok.qTox",
"runtime": "org.kde.Platform",
"sdk": "org.kde.Sdk",
"runtime-version": "6.8",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyleft 2016 SkyzohKey <[email protected]> -->
<component type="desktop">
<id>com.github.TokTok.qTox</id>
<launchable type="desktop-id">com.github.TokTok.qTox.desktop</launchable>
<id>io.github.TokTok.qTox</id>
<launchable type="desktop-id">io.github.TokTok.qTox.desktop</launchable>
<metadata_license>CC-BY-SA-3.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>qTox</name>
Expand Down
2 changes: 1 addition & 1 deletion src/appmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ int AppManager::run()
#endif

qapp->setApplicationName("qTox");
qapp->setDesktopFileName("com.github.TokTok.qTox");
qapp->setDesktopFileName("io.github.TokTok.qTox");
qapp->setApplicationVersion("\nGit commit: " + QString(GIT_VERSION));

// Install Unicode 6.1 supporting font
Expand Down
4 changes: 2 additions & 2 deletions tools/update-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ update_readme() {
update_appdata() {
cd "$BASE_DIR"/res/
local isodate="$(date --iso-8601)"
sed -ri "s|(<release version=\")$VERSION_PATTERN|\1$@|g" com.github.TokTok.qTox.appdata.xml
sed -ri "s|(<release version=\"$VERSION_PATTERN\" date=\").{10}\"|\1$isodate\"|g" com.github.TokTok.qTox.appdata.xml
sed -ri "s|(<release version=\")$VERSION_PATTERN|\1$@|g" io.github.TokTok.qTox.appdata.xml
sed -ri "s|(<release version=\"$VERSION_PATTERN\" date=\").{10}\"|\1$isodate\"|g" io.github.TokTok.qTox.appdata.xml
}

# exit if supplied arg is not a version
Expand Down
8 changes: 4 additions & 4 deletions tools/validate_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def check_flathub_descriptor_dependencies(failures: list[str],
"Update flathub descriptor dependencies",
failures) as check:
flathub_manifest_path = os.path.join(GIT_BASE_DIR, "flatpak",
"com.github.TokTok.qTox.json")
"io.github.TokTok.qTox.json")
subprocess.run( # nosec
[
"flatpak/update_flathub_descriptor_dependencies.py",
Expand Down Expand Up @@ -177,7 +177,7 @@ def check_package_versions(failures: list[str], config: Config) -> None:
files = (
"README.md",
"macos/Info.plist",
"res/com.github.TokTok.qTox.appdata.xml",
"res/io.github.TokTok.qTox.appdata.xml",
"windows/qtox.nsi",
"windows/qtox64.nsi",
)
Expand All @@ -196,7 +196,7 @@ def check_package_versions(failures: list[str], config: Config) -> None:
def check_no_version_changes(failures: list[str]) -> None:
"""Check that no version changes are made in a non-release PR.
Diff res/com.github.TokTok.qTox.appdata.xml against $GITHUB_BASE_BRANCH and
Diff res/io.github.TokTok.qTox.appdata.xml against $GITHUB_BASE_BRANCH and
check if there's a line starting with "+" or "-" that contains a version
number.
Expand All @@ -215,7 +215,7 @@ def check_no_version_changes(failures: list[str]) -> None:
"diff",
github.base_branch(),
"--",
"res/com.github.TokTok.qTox.appdata.xml",
"res/io.github.TokTok.qTox.appdata.xml",
],
cwd=GIT_BASE_DIR,
universal_newlines=True,
Expand Down

0 comments on commit 8bd7476

Please sign in to comment.