Skip to content

Commit 100e360

Browse files
committed
APPLICATION_REV_DOMAIN changed from eu.opencloud.desktop to eu.opencloud.OpenCloudDesktop (complies with Flathub app ID requirements).
1 parent 152f32c commit 100e360

14 files changed

Lines changed: 47 additions & 50 deletions

File tree

.github/workflows/build-flatpak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
git checkout
3232
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
3333
with:
34-
bundle: eu.opencloud.Desktop.flatpak
35-
manifest-path: eu.opencloud.Desktop.yml
34+
bundle: eu.opencloud.OpenCloudDesktop.flatpak
35+
manifest-path: eu.opencloud.OpenCloudDesktop.yml
3636
cache-key: flatpak-builder-${{ github.sha }}
3737
arch: ${{ matrix.variant.arch }}
3838
verbose: true

.github/workflows/update-flathub.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: Update Flathub
44
# or metainfo file are updated on the default branch.
55
#
66
# Prerequisites (see https://docs.flathub.org/docs/for-app-authors/updates):
7-
# 1. App must be published on Flathub (repo: flathub/eu.opencloud.Desktop)
7+
# 1. App must be published on Flathub (repo: flathub/eu.opencloud.OpenCloudDesktop)
88
# 2. Add a FLATHUB_TOKEN repository secret – a GitHub PAT with repo scope
9-
# that has write access to the flathub/eu.opencloud.Desktop repo
9+
# that has write access to the flathub/eu.opencloud.OpenCloudDesktop repo
1010
# 3. Disable the global x-checker action on the Flathub repo (if enabled)
1111
# to avoid duplicate update PRs
1212
#
@@ -17,8 +17,8 @@ on:
1717
push:
1818
branches: [main]
1919
paths:
20-
- eu.opencloud.Desktop.metainfo.xml
21-
- eu.opencloud.Desktop.yml
20+
- eu.opencloud.OpenCloudDesktop.metainfo.xml
21+
- eu.opencloud.OpenCloudDesktop.yml
2222

2323
jobs:
2424
update-flathub:
@@ -30,20 +30,20 @@ jobs:
3030
- name: Get version from metainfo
3131
id: version
3232
run: |
33-
VERSION=$(grep -oP '<release version="\K[^"]+' eu.opencloud.Desktop.metainfo.xml)
33+
VERSION=$(grep -oP '<release version="\K[^"]+' eu.opencloud.OpenCloudDesktop.metainfo.xml)
3434
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3535
3636
- name: Checkout Flathub repo
3737
uses: actions/checkout@v6
3838
with:
39-
repository: flathub/eu.opencloud.Desktop
39+
repository: flathub/eu.opencloud.OpenCloudDesktop
4040
token: ${{ secrets.FLATHUB_TOKEN }}
4141
path: flathub
4242

4343
- name: Copy updated files
4444
run: |
45-
cp eu.opencloud.Desktop.metainfo.xml flathub/
46-
cp eu.opencloud.Desktop.yml flathub/
45+
cp eu.opencloud.OpenCloudDesktop.metainfo.xml flathub/
46+
cp eu.opencloud.OpenCloudDesktop.yml flathub/
4747
4848
- name: Create Pull Request to Flathub
4949
uses: peter-evans/create-pull-request@v7

.github/workflows/update-flatpak.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ jobs:
4646
run: |
4747
sed -i \
4848
-e 's|<release version="[^"]*" date="[^"]*">|<release version="${{ steps.release.outputs.version }}" date="${{ steps.release.outputs.date }}">|' \
49-
eu.opencloud.Desktop.metainfo.xml
49+
eu.opencloud.OpenCloudDesktop.metainfo.xml
5050
51-
echo "Updated eu.opencloud.Desktop.metainfo.xml:"
52-
grep '<release version=' eu.opencloud.Desktop.metainfo.xml
51+
echo "Updated eu.opencloud.OpenCloudDesktop.metainfo.xml:"
52+
grep '<release version=' eu.opencloud.OpenCloudDesktop.metainfo.xml
5353
5454
- name: Update Desktop.yml
5555
run: |
5656
# Update the tag and commit for the opencloud-desktop module source
5757
sed -i \
5858
-e '/name: opencloud-desktop/,/^ - name:/{ s|tag: v.*|tag: ${{ steps.release.outputs.tag }}|; s|commit: [a-f0-9]\{40\}|commit: ${{ steps.release.outputs.commit }}|; }' \
59-
eu.opencloud.Desktop.yml
59+
eu.opencloud.OpenCloudDesktop.yml
6060
61-
echo "Updated eu.opencloud.Desktop.yml:"
62-
grep -A2 'name: opencloud-desktop' eu.opencloud.Desktop.yml | head -1
63-
grep -E '^\s+tag:|^\s+commit:' eu.opencloud.Desktop.yml | tail -2
61+
echo "Updated eu.opencloud.OpenCloudDesktop.yml:"
62+
grep -A2 'name: opencloud-desktop' eu.opencloud.OpenCloudDesktop.yml | head(1)
63+
grep -E '^\s+tag:|^\s+commit:' eu.opencloud.OpenCloudDesktop.yml | tail -2
6464
6565
- name: Create Pull Request
6666
uses: peter-evans/create-pull-request@v7
@@ -70,8 +70,8 @@ jobs:
7070
Automated update to [${{ steps.release.outputs.tag }}](https://github.com/opencloud-eu/desktop/releases/tag/${{ steps.release.outputs.tag }}).
7171
7272
Changes:
73-
- Updated `eu.opencloud.Desktop.metainfo.xml` release version to `${{ steps.release.outputs.version }}` (date: `${{ steps.release.outputs.date }}`)
74-
- Updated `eu.opencloud.Desktop.yml` source tag to `${{ steps.release.outputs.tag }}` and commit to `${{ steps.release.outputs.commit }}`
73+
- Updated `eu.opencloud.OpenCloudDesktop.metainfo.xml` release version to `${{ steps.release.outputs.version }}` (date: `${{ steps.release.outputs.date }}`)
74+
- Updated `eu.opencloud.OpenCloudDesktop.yml` source tag to `${{ steps.release.outputs.tag }}` and commit to `${{ steps.release.outputs.commit }}`
7575
branch: update-flatpak-${{ steps.release.outputs.version }}
7676
commit-message: "chore: update flatpak to ${{ steps.release.outputs.version }}"
7777
delete-branch: true

OPENCLOUD.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set( APPLICATION_SHORTNAME "OpenCloud" )
33
set( APPLICATION_EXECUTABLE "opencloud" )
44
set( APPLICATION_VENDOR "OpenCloud" )
55
set( APPLICATION_ICON_NAME "opencloud" )
6-
set( APPLICATION_REV_DOMAIN "eu.opencloud.desktop" )
6+
set( APPLICATION_REV_DOMAIN "eu.opencloud.OpenCloudDesktop" )
77

88
if(BETA_CHANNEL_BUILD)
99
set( APPLICATION_NAME "${APPLICATION_NAME} Beta")

admin/osx/deny_autoupdate_eu.opencloud.desktop.plist renamed to admin/osx/deny_autoupdate_eu.opencloud.OpenCloudDesktop.plist

File renamed without changes.

eu.opencloud.Desktop.metainfo.xml renamed to eu.opencloud.OpenCloudDesktop.metainfo.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<component type="desktop-application">
3-
<id>eu.opencloud.Desktop</id>
3+
<id>eu.opencloud.OpenCloudDesktop</id>
44
<name>Opencloud Desktop Client</name>
55
<project_license>GPL-2.0+</project_license>
66
<summary>Sync and collaborate on your desktop or laptop</summary>
@@ -12,12 +12,12 @@
1212
<p>The OpenCloud desktop client keeps photos and documents always up to date, enabling you to work like you always did.
1313
Any file you add, modify or delete in the synced folders on your desktop or laptop will show up, change or disappear on the server and all other connected devices.</p>
1414
</description>
15-
<icon type="stock">opencloud</icon>
15+
<icon type="stock">eu.opencloud.OpenCloudDesktop</icon>
1616
<categories>
1717
<category>Network</category>
1818
<category>Utility</category>
1919
</categories>
20-
<launchable type="desktop-id">eu.opencloud.Desktop</launchable>
20+
<launchable type="desktop-id">eu.opencloud.OpenCloudDesktop</launchable>
2121
<screenshots>
2222
<screenshot type="default">
2323
<caption>The options dialog</caption>
@@ -38,4 +38,4 @@ Any file you add, modify or delete in the synced folders on your desktop or lapt
3838
</release>
3939
</releases>
4040
<content_rating type="oars-1.1"/>
41-
</component>
41+
</component>
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
app-id: eu.opencloud.Desktop
1+
app-id: eu.opencloud.OpenCloudDesktop
22

33
runtime: org.kde.Platform
44
runtime-version: "6.9"
@@ -20,7 +20,7 @@ finish-args:
2020
- --talk-name=org.freedesktop.Notifications
2121
- --talk-name=org.freedesktop.secrets
2222
- --talk-name=org.kde.StatusNotifierWatcher
23-
- --own-name=eu.opencloud.Desktop
23+
- --own-name=eu.opencloud.OpenCloudDesktop
2424
- --talk-name=org.kde.kwalletd5
2525
- --talk-name=org.kde.kwalletd6
2626
- --env=TMPDIR=/var/tmp
@@ -99,15 +99,6 @@ modules:
9999
tag: v1.2.0
100100
commit: 3186a158f8e6565e89f5983b4028c892737844ff
101101

102-
- name: desktop-file
103-
buildsystem: simple
104-
build-commands:
105-
- sed -e 's|@APPLICATION_EXECUTABLE@|opencloud|g' -e 's|@APPLICATION_NAME@|OpenCloud|g' -e 's|@APPLICATION_ICON_NAME@|eu.opencloud.Desktop|g' opencloud.desktop.in > eu.opencloud.Desktop.desktop
106-
- install -Dm644 eu.opencloud.Desktop.desktop /app/share/applications/eu.opencloud.Desktop.desktop
107-
sources:
108-
- type: file
109-
path: opencloud.desktop.in
110-
111102
- name: opencloud-desktop
112103
buildsystem: cmake-ninja
113104
config-opts:
@@ -123,7 +114,7 @@ modules:
123114
cleanup:
124115
- /include
125116
post-install:
126-
- install -Dm644 -t /app/share/metainfo eu.opencloud.Desktop.metainfo.xml
117+
- install -Dm644 -t /app/share/metainfo eu.opencloud.OpenCloudDesktop.metainfo.xml
127118
sources:
128119
- type: git
129120
url: https://github.com/opencloud-eu/desktop
@@ -136,4 +127,4 @@ modules:
136127
version-query: $tag | sub("^[vV]"; "")
137128
timestamp-query: .published_at
138129
- type: file
139-
path: eu.opencloud.Desktop.metainfo.xml
130+
path: eu.opencloud.OpenCloudDesktop.metainfo.xml

shell_integration/MacOSX/OpenCloudFinderExtension/FinderSyncExt/FinderSync.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ - (instancetype)init
4848
// - Be prefixed with the code signing Team ID
4949
// - Then infixed with the sandbox App Group
5050
// - The App Group itself must be a prefix of (or equal to) the application bundle identifier
51-
// We end up in the official signed client with: 9B5WD74GWJ.eu.opencloud.desktop.socketApi
51+
// We end up in the official signed client with: 9B5WD74GWJ.eu.opencloud.OpenCloudDesktop.socketApi
5252
// With ad-hoc signing (the '-' signing identity) we must drop the Team ID.
5353
// When the code isn't sandboxed (e.g. the OC client or the legacy overlay icon extension)
5454
// the OS doesn't seem to put any restriction on the port name, so we just follow what

shell_integration/MacOSX/OpenCloudFinderExtension/OpenCloudFinderExtension.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
MACOSX_DEPLOYMENT_TARGET = 10.15;
439439
MTL_ENABLE_DEBUG_INFO = YES;
440440
OC_APPLICATION_NAME = OpenCloud;
441-
OC_APPLICATION_REV_DOMAIN = eu.opencloud.desktop;
441+
OC_APPLICATION_REV_DOMAIN = eu.opencloud.OpenCloudDesktop;
442442
OC_OEM_SHARE_ICNS = "";
443443
OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX = "";
444444
ONLY_ACTIVE_ARCH = YES;
@@ -486,8 +486,8 @@
486486
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks";
487487
MACOSX_DEPLOYMENT_TARGET = 10.15;
488488
MTL_ENABLE_DEBUG_INFO = NO;
489-
OC_APPLICATION_NAME = OpenClud;
490-
OC_APPLICATION_REV_DOMAIN = eu.opencloud.desktop;
489+
OC_APPLICATION_NAME = OpenCloud;
490+
OC_APPLICATION_REV_DOMAIN = eu.opencloud.OpenCloudDesktop;
491491
OC_OEM_SHARE_ICNS = "";
492492
OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX = "";
493493
PRODUCT_NAME = "$(TARGET_NAME)";

src/cmd/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ else()
1616
endif()
1717

1818
if(UNIX AND NOT APPLE)
19-
configure_file(${CMAKE_SOURCE_DIR}/opencloud.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_EXECUTABLE}cmd.desktop)
20-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_EXECUTABLE}cmd.desktop DESTINATION ${KDE_INSTALL_DATADIR}/applications)
19+
set(_saved_icon_name "${APPLICATION_ICON_NAME}")
20+
set(APPLICATION_ICON_NAME "${APPLICATION_REV_DOMAIN}")
21+
configure_file(${CMAKE_SOURCE_DIR}/opencloud.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_REV_DOMAIN}-cmd.desktop)
22+
set(APPLICATION_ICON_NAME "${_saved_icon_name}")
23+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_REV_DOMAIN}-cmd.desktop DESTINATION ${KDE_INSTALL_DATADIR}/applications)
2124
endif()

0 commit comments

Comments
 (0)