Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.5.1 #51

Merged
merged 7 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qml/harbour-hydrogen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ApplicationWindow {
function cleanInvitation(link) {
if (link) {
var invit_raw = link.toString().split('#/')[1]
return encodeURIComponent(invit_raw.split('?')[0])
return invit_raw.split('?')[0]
}
}

Expand Down
1 change: 1 addition & 0 deletions qml/pages/AppSettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Page {

PageHeader {
title: qsTr("Settings", "page title")
description: "harbour-hydrogen unreleased"
}

SectionHeader {
Expand Down
34 changes: 22 additions & 12 deletions rpm/harbour-hydrogen.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
Name: harbour-hydrogen

# >> macros
%define zipversion sfos-0.4.1
%define zipversion sfos-v0.5.1
# << macros

Summary: hydrogen, a matrix client
Version: 0.4.1
Release: 2
Version: 0.5.1
Release: 1
Group: Qt/Qt
License: ASL 2.0
BuildArch: noarch
URL: https://github.com/hydrogen-sailfishos/sfos-hydrogen
URL: https://github.com/hydrogen-sailfishos/harbour-hydrogen
Source0: %{name}-%{version}.tar.bz2
Source1: https://github.com/hydrogen-sailfishos/hydrogen-web/releases/download/%{zipversion}/release-%{zipversion}.zip
Source1: https://github.com/hydrogen-sailfishos/hydrogen-web/releases/download/%{zipversion}/hydrogen-web-%{zipversion}.tar.gz
Requires: sailfishsilica-qt5 >= 0.10.9
Requires: libsailfishapp-launcher
Requires: sailfish-components-webview-qt5
Expand All @@ -43,25 +43,35 @@ Categories:
- InstantMessaging
- Network
Custom:
Repo: https://github.com/hydrogen-sailfishos/sfos-hydrogen
PackageIcon: https://raw.githubusercontent.com/hydrogen-sailfishos/sfos-hydrogen/hackathon/icons/svgs/harbour-hydrogen.svg
Repo: https://github.com/hydrogen-sailfishos/harbour-hydrogen
PackageIcon: https://raw.githubusercontent.com/hydrogen-sailfishos/harbour-hydrogen/hackathon/icons/svgs/harbour-hydrogen.svg
Links:
Homepage: https://github.com/hydrogen-sailfishos/sfos-hydrogen
Bugtracker: https://github.com/hydrogen-sailfishos/sfos-hydrogen/issues
Homepage: https://github.com/hydrogen-sailfishos/harbour-hydrogen
Bugtracker: https://github.com/hydrogen-sailfishos/harbour-hydrogen/issues
Hackathon: https://github.com/orgs/hydrogen-sailfishos/projects/1/
%endif

%prep
%setup -q -n %{name}-%{version}
%if 0%{?sailfishos_version}
# add release version to QML app
sed -i "s/unreleased/%{version}/" qml/pages/AppSettingsPage.qml
if [ ! -f %{SOURCE1} ]
then
echo "Missing %{SOURCE1}"
exit 1
fi
pushd hydrogen
unzip %{SOURCE1}
popd
# we use hydrogen/target because locally fetching hydrogen-web in that folder builds it there
mkdir -p hydrogen/target

# but this is the pre-built web app from github
tar -C hydrogen/target -xvzf %{SOURCE1}

# create config from sample
if [ ! -f hydrogen/target/config.json ]
then
mv hydrogen/target/config.sample.json hydrogen/target/config.json
fi
%endif

# >> setup
Expand Down