Skip to content

Commit 4985ad1

Browse files
authored
Merge pull request #3 from 5cript/release/v0.1.0
Release/v0.1.1
2 parents 28774bf + 546da18 commit 4985ad1

6 files changed

Lines changed: 41 additions & 28 deletions

File tree

.github/workflows/flatpak.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,26 +52,26 @@ jobs:
5252
5353
- name: Rename flatpak bundle
5454
run: |
55-
mv nui-sftp.flatpak "nui-sftp-flatpak-x86_64_${{ env.VERSION }}.zip"
55+
mv nui-sftp.flatpak "nui-sftp-flatpak-x86_64_${{ env.VERSION }}.flatpak"
5656
5757
- name: Upload Artifact to Release
5858
if: github.ref == 'refs/heads/main'
5959
env:
6060
GH_TOKEN: ${{ secrets.RELEASEUPLOADPAT }}
6161
run: |
62-
gh release upload "v${{ env.VERSION }}" "nui-sftp-flatpak-x86_64_${{ env.VERSION }}.zip" --repo 5cript/nui-sftp
62+
gh release upload "v${{ env.VERSION }}" "nui-sftp-flatpak-x86_64_${{ env.VERSION }}.flatpak" --repo 5cript/nui-sftp
6363
6464
- name: Upload artifacts to MEGA S4
6565
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
6666
env:
6767
AWS_ACCESS_KEY_ID: ${{ secrets.MEGAS4ACCESS }}
6868
AWS_SECRET_ACCESS_KEY: ${{ secrets.MEGAS4KEY }}
6969
ENDPOINT: https://s3.eu-central-1.s4.mega.io
70-
FILENAME: "nui-sftp-flatpak-x86_64_${{ env.VERSION }}.zip"
70+
FILENAME: "nui-sftp-flatpak-x86_64_${{ env.VERSION }}.flatpak"
7171
S3_PATH: "s3://nui-sftp-releases/flatpak/${{ (github.event_name == 'workflow_dispatch' && 'x86_64/user_trigger') || 'x86_64' }}/"
7272
run: |
7373
# 1. Check if the file exists on the remote S4 storage
74-
# We point to the full URI: s3://bucket/path/filename.zip
74+
# We point to the full URI: s3://bucket/path/filename.flatpak
7575
if aws s3 ls "${{ env.S3_PATH }}${{ env.FILENAME }}" --endpoint-url ${{ env.ENDPOINT }} > /dev/null 2>&1; then
7676
echo "::error::Deployment failed: ${{ env.FILENAME }} already exists in S4. Aborting to prevent overwrite."
7777
exit 1

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
path: ${{ env.WSPACE }}/nui-sftp-windows-x86_64_${{ env.VERSION }}.zip
131131

132132
- name: Upload Artifact to Release
133-
# if: github.ref == 'refs/heads/main'
133+
if: github.ref == 'refs/heads/main'
134134
env:
135135
GH_TOKEN: ${{ secrets.RELEASEUPLOADPAT }}
136136
run: |

PKGBUILD

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Tim Ebbeke <tim 06 tr (at) gmail dot com>
22

33
pkgname=nui-sftp
4-
pkgver=0.0.5
4+
pkgver=0.1.1
55
pkgrel=1
66
pkgdesc="NUI-based SFTP application"
77
arch=('x86_64')
@@ -28,25 +28,23 @@ makedepends=(
2828
options=('!debug')
2929
source=(
3030
"$pkgname::git+$url.git#tag=v${pkgver//_/-}"
31-
"git+https://github.com/NuiCpp/Nui.git#commit=d066aebccc5ef40612e4c072ad14686ca8c16072"
31+
"git+https://github.com/NuiCpp/Nui.git#tag=v3.0.0"
3232
"git+https://github.com/5cript/roar.git#commit=a787bce9c8132f4c860bc9e55bff742fd1a3276f"
3333
"git+https://github.com/DNKpp/gimo.git#commit=16377a6d496b31a9272f9a079c060fba15258bcc"
3434
"git+https://github.com/NuiCpp/traits.git#commit=6c9caa21c48c9e1f7f039a7bdf8805a0940fce0a"
35-
"git+https://github.com/NuiCpp/ui5.git#commit=a514318f9110f7e77574abd283ef0c5ecf634f40"
36-
"git+https://github.com/5cript/5cript-nui-components.git#commit=fb33b5f751eed174b930329fbecf52138e63c0cf"
35+
"git+https://github.com/5cript/5cript-nui-components.git#commit=755a0246a961619e4372caf24e0b499b4856d4dd"
3736
"https://s3.g.s4.mega.io/jgemkib4a5fte35rktt5wxrwkw4ejk4ybemkf/nui-scp/images/NUI-SFTP_Logo-01.svg"
3837
"https://github.com/5cript/nui-sftp/releases/download/v${pkgver}/nui-sftp-linux-frontend_${pkgver}.tar.gz"
3938
)
4039
sha256sums=(
41-
'6fc3bea15d2c08b6ac902a647102b178665c67e680e2fdb5f3f3e81fe531ba70'
42-
'06bb027424dee282a5d9806b6a9ffec4be6084790a6312120174244b27610299'
40+
'd7e95006e01d0aa72f72ff1cc9d4741d21801f47c1a09584c0419a4cfd0e9103'
41+
'7948c9f043d8ebd34b9fbc1b5c2214c59fe919b102ea699a1714abb904b01124'
4342
'411be282af945718509ce24cc0c2ef837657398c23386a0cb7035d1ecc6367d5'
4443
'8d5c5f36710425e8660470db14a5d6011e20b4e9be638f3ab34ad81f9fe286b7'
4544
'77bed25f96135cdcf1b8274664c9564375f9823866e7d55e843f75a213af5359'
46-
'64e6a4c24ef2e229721482448f8b139c50c41bbdecaea4cf79ce079a8d21e4a0'
47-
'b48e921daff6efe9b9ce1520ae9ee431c0f8ed6428d8190cd33750df8049398a'
45+
'b2c3cf89924b49a3d4106c49fe8123cef784acfec9189102c0a26cd5b2585559'
4846
'6a8217c9f00ded6893324649394a9dbc9e5004a2644735fd3f18934bb29bcae6'
49-
'7d97c50cac458a9dcfab1ef4d6b8288df4c72f7eb52f59fc3b46a45702c7107c'
47+
'3808896fed768382e424d7058f2ff99e1728cd73aece2980ba3ba763bc1738f0'
5048
)
5149

5250
build() {
@@ -59,7 +57,6 @@ build() {
5957
cp -r "$srcdir/roar" "$srcdir/$pkgname/dependencies/roar"
6058
cp -r "$srcdir/gimo" "$srcdir/$pkgname/dependencies/gimo"
6159
cp -r "$srcdir/traits" "$srcdir/$pkgname/dependencies/traits"
62-
cp -r "$srcdir/ui5" "$srcdir/$pkgname/dependencies/ui5"
6360
cp -r "$srcdir/5cript-nui-components" "$srcdir/$pkgname/dependencies/5cript-nui-components"
6461

6562
cmake -B "$srcdir/$pkgname/build" \
@@ -84,8 +81,6 @@ package() {
8481
mkdir -p "$pkgdir"/opt/"$pkgname"/bin
8582
mkdir -p "$pkgdir"/opt/"$pkgname"/frontend
8683
mkdir -p "$pkgdir"/opt/"$pkgname"/assets
87-
mkdir -p "$pkgdir"/opt/"$pkgname"/themes
88-
mkdir -p "$pkgdir"/opt/"$pkgname"/themes/dark
8984

9085
# Unpack frontend tarball
9186
tar -xzf "$srcdir/nui-sftp-linux-frontend_${pkgver//_/-}.tar.gz" -C "$pkgdir"/opt/"$pkgname"/frontend --strip-components=1
@@ -94,7 +89,6 @@ package() {
9489
install -m755 "$srcdir/$pkgname/build/bin/$pkgname" "$pkgdir"/opt/"$pkgname"/bin/"$pkgname"
9590
cp -r "$srcdir/$pkgname/build/assets" "$pkgdir"/opt/"$pkgname"/
9691
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir"/opt/"$pkgname"/LICENSE
97-
install -m644 "$srcdir/$pkgname/build/themes/dark/css_variables.css" "$pkgdir"/opt/"$pkgname"/themes/dark/css_variables.css
9892

9993
# Desktop
10094
install -Dm644 "$srcdir/$pkgname/org.nuicpp.nui_sftp.desktop" "$pkgdir"/usr/share/applications/"$pkgname".desktop

org.nuicpp.nui_sftp.metainfo.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@
2020
</screenshot>
2121
</screenshots>
2222
<releases>
23+
<release version="v0.1.1" date="2026-03-22">
24+
<description>
25+
<h2 id="whatchanged">What changed</h2>
26+
<p>There are no more ui5 themes to deploy, so they were removed from deploy.sh</p>
27+
</description>
28+
</release>
29+
<release version="v0.1.0" date="2026-03-22">
30+
<description>
31+
<h2 id="whatschanged">What&apos;s Changed</h2>
32+
<ul>
33+
<li>Remove ui5 webcomponents by @5cript in https://github.com/5cript/nui-sftp/pull/28</li>
34+
</ul>
35+
<p>
36+
37+
<strong>Full Changelog</strong>
38+
: https://github.com/5cript/nui-sftp/compare/v0.0.5…v0.1.0
39+
</p>
40+
</description>
41+
</release>
2342
<release version="v0.0.5" date="2026-03-11">
2443
<description>
2544
<p>Fixed Frontend Artifact Upload</p>

org.nuicpp.nui_sftp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ modules:
124124
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
125125
-DOFFLINE_BUILD=ON
126126
-DJSON_Diagnostics=ON
127-
-DFORCED_PROJECT_VERSION=v0.0.5
127+
-DFORCED_PROJECT_VERSION=0.1.1
128128
- cmake --build build/flatpak
129129
- OMIT_FRONTEND=true ./scripts/deploy.sh
130130
# Patch desktop file to rename icon "nui_sftp.svg" to "org.nuicpp.nui_sftp.svg"
@@ -138,10 +138,10 @@ modules:
138138
sources:
139139
- type: git
140140
url: https://github.com/5cript/nui-sftp
141-
tag: v0.0.5
141+
tag: v0.1.1
142142
- type: git
143143
url: https://github.com/NuiCpp/Nui.git
144-
commit: d066aebccc5ef40612e4c072ad14686ca8c16072
144+
tag: v3.0.0
145145
dest: 'dependencies/Nui'
146146
- type: git
147147
url: https://github.com/5cript/roar.git

scripts/update_scripts/flatpak.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { flatpakYamlPath } from './files_and_dirs.mjs';
2-
import { version } from './args.mjs';
2+
import { parsedVersion } from './version.mjs';
33
import { findLineIndexMatching, onLineMatchingModify, splitLines } from './text_editing.mjs';
44
import { workDependenciesAsMap } from './work_dependencies.mjs';
55
import { looksLikeGitHash } from './git.mjs';
@@ -14,14 +14,14 @@ async function setFunctionOnForcedVersionCmakeOptions(yamlLines) {
1414
}
1515

1616
const cmakeOptionsLine = yamlLines[lineIndex];
17-
yamlLines[lineIndex] = match[1] + `-DFORCED_PROJECT_VERSION=${version}`;
17+
yamlLines[lineIndex] = match[1] + `-DFORCED_PROJECT_VERSION=${parsedVersion().majorMinorPatch}`;
1818
console.log(`Updating DFORCED_PROJECT_VERSION in flatpak YAML from ${cmakeOptionsLine} to ${yamlLines[lineIndex]}...`);
1919
return yamlLines;
2020
}
2121

2222
async function updateSources(yamlLines) {
2323
const workDeps = await workDependenciesAsMap();
24-
workDeps['nui-sftp'] = { url: 'https://github.com/5cript/nui-sftp', rev: version, branch: 'main' };
24+
workDeps['nui-sftp'] = { url: 'https://github.com/5cript/nui-sftp', rev: parsedVersion().tag, branch: 'main' };
2525
for (const [name, { url, rev }] of Object.entries(workDeps)) {
2626
// find url in yaml lines
2727
const urlLineIndex = findLineIndexMatching(yamlLines, new RegExp(`\\s*url:\\s*${url.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`)).lineIndex;
@@ -32,8 +32,8 @@ async function updateSources(yamlLines) {
3232

3333
// Search two lines up and below for "tag" or "commit":
3434
let refLineIndex = -1;
35-
const checkFrom = Math.max(0, urlLineIndex - 2);
36-
const checkTo = Math.min(yamlLines.length - 1, urlLineIndex + 2);
35+
const checkFrom = Math.max(0, urlLineIndex);
36+
const checkTo = Math.min(yamlLines.length - 1, urlLineIndex + 3);
3737
for (let i = checkFrom; i <= checkTo; ++i) {
3838
if (/^\s*(tag|commit):\s*v?.*/.test(yamlLines[i])) {
3939
refLineIndex = i;
@@ -53,9 +53,9 @@ async function updateSources(yamlLines) {
5353
console.log(`Updating source for work dependency ${name} in flatpak YAML from ${refType} ${yamlLines[refLineIndex]} to ${refType} ${newRefValue}...`);
5454

5555
if (looksLikeGitHash(newRefValue)) {
56-
yamlLines[refLineIndex] = yamlLines[refLineIndex].replace(/^\s*tag:\s*v?.*/, `${refLineSpacePrefix}commit: ${newRefValue}`);
56+
yamlLines[refLineIndex] = refLineSpacePrefix + `commit: ${newRefValue}`;
5757
} else {
58-
yamlLines[refLineIndex] = yamlLines[refLineIndex].replace(/^\s*commit:\s*v?.*/, `${refLineSpacePrefix}tag: ${newRefValue}`);
58+
yamlLines[refLineIndex] = refLineSpacePrefix + `tag: ${newRefValue}`; // Assuming it's a tag if it doesn't look like a git hash
5959
}
6060
}
6161
return yamlLines;

0 commit comments

Comments
 (0)