mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-06-21 01:23:04 +02:00
Compare commits
11 Commits
v1.7.15
...
v1.7.17-sc
Author | SHA1 | Date | |
---|---|---|---|
80e65529bb | |||
263a269da9 | |||
3d4259827d | |||
52a7dfcd82 | |||
ed9740a4c2 | |||
cdd8ec775c | |||
88ef11d716 | |||
acd5e71f6c | |||
412cbad76b | |||
dfef402e7f | |||
651ffc13df |
@ -11,6 +11,7 @@
|
||||
"https://scalar-staging.vector.im/api",
|
||||
"https://scalar-staging.riot.im/scalar/api"
|
||||
],
|
||||
"showLabsSettings": true,
|
||||
"roomDirectory": {
|
||||
"servers": [
|
||||
"matrix.org"
|
||||
|
1
deploy/.gitignore
vendored
Normal file
1
deploy/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
repos/*
|
80
deploy/create-github-release.sh
Executable file
80
deploy/create-github-release.sh
Executable file
@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Based upon https://hinty.io/ivictbor/publish-and-upload-release-to-github-with-bash-and-curl/
|
||||
# and https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
|
||||
#
|
||||
|
||||
set -e
|
||||
# set -x
|
||||
|
||||
version="$1"
|
||||
releasepath="$2"
|
||||
|
||||
github_api_token=`cat ~/githubtoken`
|
||||
release_notes_file="/tmp/scrn.md"
|
||||
|
||||
owner=SchildiChat
|
||||
repo=schildichat-desktop
|
||||
target=sc
|
||||
|
||||
# Define variables
|
||||
GH_API="https://api.github.com"
|
||||
GH_REPO="$GH_API/repos/$owner/$repo"
|
||||
AUTH="Authorization: token $github_api_token"
|
||||
|
||||
# Validate token
|
||||
curl -o /dev/null -sH "$AUTH" $GH_REPO || { echo "Error: Invalid repo, token or network issue!"; exit 1; }
|
||||
|
||||
# Get release notes
|
||||
$EDITOR "$release_notes_file"
|
||||
release_notes=`cat "$release_notes_file"`
|
||||
|
||||
# Create draft release
|
||||
echo "Create GitHub draft release ..."
|
||||
json_string=`jq -n --arg tag "v$version" --arg target "$target" --arg body "$release_notes" '{
|
||||
tag_name: $tag,
|
||||
target_commitish: $target,
|
||||
name: $tag,
|
||||
body: $body,
|
||||
draft: true,
|
||||
prerelease: false
|
||||
}'`
|
||||
# echo "$json_string"
|
||||
res=`echo "$json_string" | curl -sH "$AUTH" $GH_REPO/releases -d @-`
|
||||
# echo "$res" | jq "."
|
||||
|
||||
# Get release id
|
||||
id=`echo $res | jq ".id"`
|
||||
# echo "id: $id"
|
||||
|
||||
# Upload assets
|
||||
find "$releasepath" -type f | while read filename; do
|
||||
echo ""
|
||||
echo "Uploading $filename ..."
|
||||
|
||||
# Construct url
|
||||
GH_ASSET="https://uploads.github.com/repos/$owner/$repo/releases/$id/assets?name=$(basename $filename)"
|
||||
|
||||
# Upload
|
||||
res=`curl --progress-bar --data-binary @"$filename" -H "$AUTH" -H "Content-Type: application/octet-stream" $GH_ASSET`
|
||||
state=`echo $res | jq ".state"`
|
||||
if [ "$state" == "\"uploaded\"" ]; then
|
||||
echo "Success!"
|
||||
else
|
||||
echo "Error:"
|
||||
echo $res | jq "."
|
||||
exit -1
|
||||
fi
|
||||
done
|
||||
|
||||
# Publish draft
|
||||
res=`curl -sH "$AUTH" $GH_REPO/releases/$id -d '{"draft": false}'`
|
||||
draft=`echo $res | jq ".draft"`
|
||||
echo ""
|
||||
if [ "$draft" == "false" ]; then
|
||||
echo "Release v$version published on GitHub!"
|
||||
else
|
||||
echo "Error:"
|
||||
echo $res | jq "."
|
||||
exit -1
|
||||
fi
|
35
deploy/update-aur-bin.sh
Executable file
35
deploy/update-aur-bin.sh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
# set -x
|
||||
|
||||
DEPLOY_ROOT="$(dirname "$(realpath "$0")")"
|
||||
|
||||
version="$1"
|
||||
debpath="$2"
|
||||
|
||||
repopath="$DEPLOY_ROOT/repos/aur-bin"
|
||||
repourl="ssh://aur@aur.archlinux.org/schildichat-desktop-bin.git"
|
||||
|
||||
sha256sum=($(sha256sum $debpath))
|
||||
|
||||
[ -d "$repopath" ] || git clone $repourl $repopath
|
||||
|
||||
pushd "$repopath" > /dev/null
|
||||
|
||||
git fetch
|
||||
git reset --hard origin/master
|
||||
|
||||
sed -i "s|^_pkgver=.*$|_pkgver=$version|" PKGBUILD
|
||||
sed -i "s|^sha256sums=('.*'$|sha256sums=('$sha256sum'|" PKGBUILD
|
||||
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
|
||||
git add .SRCINFO PKGBUILD
|
||||
git commit -m "Bump version to v$version"
|
||||
|
||||
git push
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
echo "Release v$version published on AUR!"
|
46
deploy/update-flathub.sh
Executable file
46
deploy/update-flathub.sh
Executable file
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
# set -x
|
||||
|
||||
DEPLOY_ROOT="$(dirname "$(realpath "$0")")"
|
||||
|
||||
version="$1"
|
||||
debpath="$2"
|
||||
|
||||
repopath="$DEPLOY_ROOT/repos/flathub"
|
||||
repourl="git@github.com:flathub/chat.schildi.desktop.git"
|
||||
|
||||
downloadurl="https://github.com/SchildiChat/schildichat-desktop/releases/download/v${version}/schildichat-desktop_${version}_amd64.deb"
|
||||
sha256sum=($(sha256sum $debpath))
|
||||
debsize=($(wc -c $debpath))
|
||||
debdate=$(date +%Y-%m-%d -r $debpath)
|
||||
|
||||
[ -d "$repopath" ] || git clone $repourl $repopath
|
||||
|
||||
pushd "$repopath" > /dev/null
|
||||
|
||||
git fetch
|
||||
git reset --hard origin/master
|
||||
|
||||
jsonFile="chat.schildi.desktop.json"
|
||||
jsonString=$(jq -r "." $jsonFile)
|
||||
|
||||
xmlFile="chat.schildi.desktop.appdata.xml"
|
||||
|
||||
jsonString=$(echo $jsonString | jq -r ".modules[]? |= ((select(.name?==\"schildichat\") | .sources[0].url = \"${downloadurl}\") // .)")
|
||||
jsonString=$(echo $jsonString | jq -r ".modules[]? |= ((select(.name?==\"schildichat\") | .sources[0].sha256 = \"${sha256sum}\") // .)")
|
||||
jsonString=$(echo $jsonString | jq -r ".modules[]? |= ((select(.name?==\"schildichat\") | .sources[0].size = ${debsize}) // .)")
|
||||
|
||||
echo $jsonString | jq --indent 4 "." > $jsonFile
|
||||
|
||||
sed -i "s|^\s\s<releases>$| <releases>\n <release version=\"$version\" date=\"$debdate\"/>|" $xmlFile
|
||||
|
||||
git add $jsonFile $xmlFile
|
||||
git commit -m "Bump version to v$version"
|
||||
|
||||
git push
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
echo "Release v$version published on flathub!"
|
Submodule element-desktop updated: 9771a09566...bdcf4b4449
Submodule element-web updated: a73a02fad1...422851e9cc
Submodule matrix-js-sdk updated: 02859bc8f0...cc018cd44b
Submodule matrix-react-sdk updated: 925dd11e87...cb31acec3c
@ -15,6 +15,13 @@ forall_repos check_branch $branch
|
||||
forall_repos git fetch upstream
|
||||
forall_repos git merge upstream/master
|
||||
|
||||
./setup.sh
|
||||
# Automatic theme update
|
||||
pushd "matrix-react-sdk" > /dev/null
|
||||
./theme.sh
|
||||
popd > /dev/null
|
||||
|
||||
# Refresh environment
|
||||
make clean
|
||||
make setup
|
||||
|
||||
popd > /dev/null
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 278 KiB |
BIN
screenshots/2.png
Normal file
BIN
screenshots/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 259 KiB |
Reference in New Issue
Block a user