Skip to content

Commit 7ab626f

Browse files
authored
Merge pull request #103 from cosmic-utils/bugfix/app-id-rename
rename app id from io.github.cosmicutils.camera to io.github.cosmic_utils.camera
2 parents 5d1081f + 0f5f884 commit 7ab626f

18 files changed

+32
-32
lines changed

.github/workflows/create-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
notes.append(pr_match.group(1).strip())
137137
138138
# Parse metainfo.xml
139-
metainfo_path = "resources/io.github.cosmicutils.camera.metainfo.xml"
139+
metainfo_path = "resources/io.github.cosmic_utils.camera.metainfo.xml"
140140
141141
# Register namespace to avoid ns0 prefix
142142
ET.register_namespace('', '')
@@ -207,7 +207,7 @@ jobs:
207207
git config user.email "github-actions[bot]@users.noreply.github.com"
208208
209209
git add Cargo.toml
210-
git add resources/io.github.cosmicutils.camera.metainfo.xml
210+
git add resources/io.github.cosmic_utils.camera.metainfo.xml
211211
git add cargo-sources.json
212212
213213
if git diff --staged --quiet; then

.github/workflows/update-flatpak-runtime.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
id: check
2828
run: |
2929
# Get current runtime version from manifest
30-
CURRENT_VERSION=$(grep -oP "runtime-version:\s*'\K[^']+" io.github.cosmicutils.camera.yml)
30+
CURRENT_VERSION=$(grep -oP "runtime-version:\s*'\K[^']+" io.github.cosmic_utils.camera.yml)
3131
echo "Current runtime version: $CURRENT_VERSION"
3232
echo "current=$CURRENT_VERSION" >> $GITHUB_OUTPUT
3333
@@ -65,10 +65,10 @@ jobs:
6565
LATEST="${{ steps.check.outputs.latest }}"
6666
6767
# Update runtime-version in the manifest
68-
sed -i "s/runtime-version: '$CURRENT'/runtime-version: '$LATEST'/" io.github.cosmicutils.camera.yml
68+
sed -i "s/runtime-version: '$CURRENT'/runtime-version: '$LATEST'/" io.github.cosmic_utils.camera.yml
6969
7070
echo "Updated manifest:"
71-
grep "runtime-version" io.github.cosmicutils.camera.yml
71+
grep "runtime-version" io.github.cosmic_utils.camera.yml
7272
7373
- name: Create Pull Request
7474
if: steps.check.outputs.update_available == 'true'
@@ -83,7 +83,7 @@ jobs:
8383
Updates `org.freedesktop.Platform` and `org.freedesktop.Sdk` from `${{ steps.check.outputs.current }}` to `${{ steps.check.outputs.latest }}`.
8484
8585
### Changes
86-
- Updated `runtime-version` in `io.github.cosmicutils.camera.yml`
86+
- Updated `runtime-version` in `io.github.cosmic_utils.camera.yml`
8787
8888
### Testing
8989
- [ ] Build Flatpak locally with `just flatpak-install`

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Camera
22

3-
[![Flathub](https://img.shields.io/flathub/v/io.github.cosmicutils.camera?logo=flathub&logoColor=white)](https://flathub.org/apps/io.github.cosmicutils.camera)
3+
[![Flathub](https://img.shields.io/flathub/v/io.github.cosmic_utils.camera?logo=flathub&logoColor=white)](https://flathub.org/apps/io.github.cosmic_utils.camera)
44
[![CI](https://github.com/cosmic-utils/camera/actions/workflows/ci.yml/badge.svg)](https://github.com/cosmic-utils/camera/actions/workflows/ci.yml)
55
[![Release](https://github.com/cosmic-utils/camera/actions/workflows/release.yml/badge.svg)](https://github.com/cosmic-utils/camera/actions/workflows/release.yml)
66

@@ -18,11 +18,11 @@ This is a personal project by [Frederic Laing](https://github.com/FreddyFunk). I
1818

1919
### Flatpak (Recommended)
2020

21-
<a href='https://flathub.org/apps/io.github.cosmicutils.camera'><img width='240' alt='Get it on Flathub' src='https://flathub.org/api/badge?svg&locale=en'/></a>
21+
<a href='https://flathub.org/apps/io.github.cosmic_utils.camera'><img width='240' alt='Get it on Flathub' src='https://flathub.org/api/badge?svg&locale=en'/></a>
2222

2323
```bash
2424
# Install from Flathub
25-
flatpak install flathub io.github.cosmicutils.camera
25+
flatpak install flathub io.github.cosmic_utils.camera
2626

2727
# Or install from a downloaded .flatpak bundle
2828
flatpak install camera-x86_64.flatpak

RELEASE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ No additional setup required. The workflow uses the default `GITHUB_TOKEN`.
6464
The `FLATHUB_TOKEN` secret must be configured in the repository settings:
6565

6666
1. Create a GitHub Personal Access Token with `repo` scope
67-
2. The token must have write access to the [flathub/io.github.cosmicutils.camera](https://github.com/flathub/io.github.cosmicutils.camera) repository
67+
2. The token must have write access to the [flathub/io.github.cosmic_utils.camera](https://github.com/flathub/io.github.cosmic_utils.camera) repository
6868
3. Add it as a repository secret named `FLATHUB_TOKEN`
6969

7070
If the secret is not set, the Flathub publishing step will be skipped.
@@ -82,7 +82,7 @@ Release notes are generated from merged pull requests. If there are no PRs since
8282

8383
### Flathub Build Fails
8484
If the Flathub build fails after publishing:
85-
1. Check the [Flathub Buildbot](https://buildbot.flathub.org/#/apps/io.github.cosmicutils.camera)
85+
1. Check the [Flathub Buildbot](https://buildbot.flathub.org/#/apps/io.github.cosmic_utils.camera)
8686
2. Common issues: missing dependencies, cargo source hash mismatches
8787
3. You may need to manually fix the Flathub repository
8888

@@ -93,7 +93,7 @@ If the automated workflow fails, you can create a release manually:
9393
```bash
9494
# 1. Update metainfo.xml manually with the new version and date
9595
# 2. Commit the change
96-
git add resources/io.github.cosmicutils.camera.metainfo.xml
96+
git add resources/io.github.cosmic_utils.camera.metainfo.xml
9797
git commit -m "Release v0.1.7: update metainfo.xml"
9898
git push origin main
9999

io.github.cosmicutils.camera.yml renamed to io.github.cosmic_utils.camera.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
app-id: io.github.cosmicutils.camera
1+
app-id: io.github.cosmic_utils.camera
22
runtime: org.freedesktop.Platform
33
runtime-version: '25.08'
44
sdk: org.freedesktop.Sdk
@@ -49,18 +49,18 @@ modules:
4949
# Install the binary
5050
- install -Dm755 target/release/camera -t /app/bin/
5151
# Install desktop file
52-
- install -Dm644 resources/io.github.cosmicutils.camera.desktop -t /app/share/applications/
52+
- install -Dm644 resources/io.github.cosmic_utils.camera.desktop -t /app/share/applications/
5353
# Install icons (PNG for each size, SVG for scalable)
54-
- install -Dm644 resources/icons/hicolor/scalable/apps/io.github.cosmicutils.camera.svg -t /app/share/icons/hicolor/scalable/apps/
55-
- install -Dm644 resources/icons/hicolor/16x16/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/16x16/apps/
56-
- install -Dm644 resources/icons/hicolor/24x24/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/24x24/apps/
57-
- install -Dm644 resources/icons/hicolor/32x32/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/32x32/apps/
58-
- install -Dm644 resources/icons/hicolor/48x48/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/48x48/apps/
59-
- install -Dm644 resources/icons/hicolor/64x64/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/64x64/apps/
60-
- install -Dm644 resources/icons/hicolor/128x128/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/128x128/apps/
61-
- install -Dm644 resources/icons/hicolor/256x256/apps/io.github.cosmicutils.camera.png -t /app/share/icons/hicolor/256x256/apps/
54+
- install -Dm644 resources/icons/hicolor/scalable/apps/io.github.cosmic_utils.camera.svg -t /app/share/icons/hicolor/scalable/apps/
55+
- install -Dm644 resources/icons/hicolor/16x16/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/16x16/apps/
56+
- install -Dm644 resources/icons/hicolor/24x24/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/24x24/apps/
57+
- install -Dm644 resources/icons/hicolor/32x32/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/32x32/apps/
58+
- install -Dm644 resources/icons/hicolor/48x48/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/48x48/apps/
59+
- install -Dm644 resources/icons/hicolor/64x64/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/64x64/apps/
60+
- install -Dm644 resources/icons/hicolor/128x128/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/128x128/apps/
61+
- install -Dm644 resources/icons/hicolor/256x256/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/256x256/apps/
6262
# Install metainfo
63-
- install -Dm644 resources/io.github.cosmicutils.camera.metainfo.xml -t /app/share/metainfo/
63+
- install -Dm644 resources/io.github.cosmic_utils.camera.metainfo.xml -t /app/share/metainfo/
6464
sources:
6565
- type: dir
6666
path: .

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-3.0-only
22

33
name := 'camera'
4-
export APPID := 'io.github.cosmicutils.camera'
4+
export APPID := 'io.github.cosmic_utils.camera'
55

66
rootdir := ''
77
prefix := '/usr'

0 commit comments

Comments
 (0)