chore: update build information
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Build and Release / Build macos-x64 (push) Canceled after 0s
Build and Release / Build macos-arm64 (push) Canceled after 0s
Build and Release / Build linux-arm64 (push) Canceled after 0s
Build and Release / Build linux-x64 (push) Canceled after 0s
Build and Release / Build windows-arm64 (push) Canceled after 0s
Build and Release / Build windows-x64 (push) Canceled after 0s
Build and Release / Create Release (push) Canceled after 0s
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Build and Release / Build macos-x64 (push) Canceled after 0s
Build and Release / Build macos-arm64 (push) Canceled after 0s
Build and Release / Build linux-arm64 (push) Canceled after 0s
Build and Release / Build linux-x64 (push) Canceled after 0s
Build and Release / Build windows-arm64 (push) Canceled after 0s
Build and Release / Build windows-x64 (push) Canceled after 0s
Build and Release / Create Release (push) Canceled after 0s
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ dist/
|
|||||||
|
|
||||||
# Snap and Flatpak local build output
|
# Snap and Flatpak local build output
|
||||||
/snap
|
/snap
|
||||||
/su.reya.signed.json
|
/info.reya.signed.json
|
||||||
/linux-artifacts
|
/linux-artifacts
|
||||||
|
|
||||||
# Vendored dependencies + cargo config generated by script/prepare-flathub
|
# Vendored dependencies + cargo config generated by script/prepare-flathub
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ path = "src/main.rs"
|
|||||||
name = "Signed"
|
name = "Signed"
|
||||||
product-name = "Signed"
|
product-name = "Signed"
|
||||||
description = "Nostr Git client for browsing repositories and collaborating"
|
description = "Nostr Git client for browsing repositories and collaborating"
|
||||||
identifier = "su.reya.signed"
|
identifier = "info.reya.signed"
|
||||||
category = "DeveloperTool"
|
category = "DeveloperTool"
|
||||||
version = "0.1.0-alpha"
|
version = "0.1.0-alpha"
|
||||||
out-dir = "../dist"
|
out-dir = "../dist"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 32 KiB |
@@ -54,4 +54,4 @@ parts:
|
|||||||
apps:
|
apps:
|
||||||
signed:
|
signed:
|
||||||
command: usr/bin/signed
|
command: usr/bin/signed
|
||||||
common-id: su.reya.signed
|
common-id: info.reya.signed
|
||||||
|
|||||||
+1
-1
@@ -78,7 +78,7 @@ fn main() {
|
|||||||
cx,
|
cx,
|
||||||
);
|
);
|
||||||
|
|
||||||
cx.set_app_identity("su.reya.signed", "Signed");
|
cx.set_app_identity("info.reya.signed", "Signed");
|
||||||
|
|
||||||
let bounds = Bounds::centered(None, size(px(1120.0), px(750.0)), cx);
|
let bounds = Bounds::centered(None, size(px(1120.0), px(750.0)), cx);
|
||||||
let opts = WindowOptions {
|
let opts = WindowOptions {
|
||||||
|
|||||||
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
# These are generated by script/prepare-flathub
|
# These are generated by script/prepare-flathub
|
||||||
vendor/
|
vendor/
|
||||||
vendor.tar.gz
|
vendor.tar.gz
|
||||||
su.reya.signed.yml
|
info.reya.signed.yml
|
||||||
su.reya.signed.metainfo.xml
|
info.reya.signed.metainfo.xml
|
||||||
release-info.xml
|
release-info.xml
|
||||||
cargo-config.toml
|
cargo-config.toml
|
||||||
build/
|
build/
|
||||||
|
|||||||
+16
-16
@@ -19,14 +19,14 @@ Run the preparation script from the repo root:
|
|||||||
This will:
|
This will:
|
||||||
1. Vendor all Rust dependencies (crates.io + git)
|
1. Vendor all Rust dependencies (crates.io + git)
|
||||||
2. Generate the metainfo.xml with proper release info
|
2. Generate the metainfo.xml with proper release info
|
||||||
3. Create `su.reya.signed.yml` - the Flatpak manifest for Flathub
|
3. Create `info.reya.signed.yml` - the Flatpak manifest for Flathub
|
||||||
|
|
||||||
## Files Generated
|
## Files Generated
|
||||||
|
|
||||||
| File | Purpose |
|
| File | Purpose |
|
||||||
|------|---------|
|
|------|---------|
|
||||||
| `su.reya.signed.yml` | Main Flatpak manifest (submit this to Flathub) |
|
| `info.reya.signed.yml` | Main Flatpak manifest (submit this to Flathub) |
|
||||||
| `su.reya.signed.metainfo.xml` | AppStream metadata with release info |
|
| `info.reya.signed.metainfo.xml` | AppStream metadata with release info |
|
||||||
| `vendor.tar.gz` | Vendored Rust dependencies |
|
| `vendor.tar.gz` | Vendored Rust dependencies |
|
||||||
| `cargo-config.toml` | Cargo configuration for offline builds |
|
| `cargo-config.toml` | Cargo configuration for offline builds |
|
||||||
| `release-info.xml` | Release info snippet for metainfo |
|
| `release-info.xml` | Release info snippet for metainfo |
|
||||||
@@ -39,13 +39,13 @@ Before submitting to Flathub, test the build:
|
|||||||
cd flathub
|
cd flathub
|
||||||
|
|
||||||
# Build and install locally
|
# Build and install locally
|
||||||
flatpak-builder --user --install --force-clean build su.reya.signed.yml
|
flatpak-builder --user --install --force-clean build info.reya.signed.yml
|
||||||
|
|
||||||
# Test the app
|
# Test the app
|
||||||
flatpak run su.reya.signed
|
flatpak run info.reya.signed
|
||||||
|
|
||||||
# Run the Flathub linter (must pass!)
|
# Run the Flathub linter (must pass!)
|
||||||
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest su.reya.signed.yml
|
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest info.reya.signed.yml
|
||||||
flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo
|
flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -69,15 +69,15 @@ git clone --branch=new-pr git@github.com:YOUR_USERNAME/flathub.git
|
|||||||
cd flathub
|
cd flathub
|
||||||
|
|
||||||
# Create a new branch
|
# Create a new branch
|
||||||
git checkout -b su.reya.signed
|
git checkout -b info.reya.signed
|
||||||
|
|
||||||
# Copy ONLY the manifest file from your project
|
# Copy ONLY the manifest file from your project
|
||||||
cp /path/to/signed/flathub/su.reya.signed.yml .
|
cp /path/to/signed/flathub/info.reya.signed.yml .
|
||||||
|
|
||||||
# Commit and push
|
# Commit and push
|
||||||
git add su.reya.signed.yml
|
git add info.reya.signed.yml
|
||||||
git commit -m "Add su.reya.signed"
|
git commit -m "Add info.reya.signed"
|
||||||
git push origin su.reya.signed
|
git push origin info.reya.signed
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Open Pull Request
|
### 3. Open Pull Request
|
||||||
@@ -92,9 +92,9 @@ git push origin su.reya.signed
|
|||||||
|
|
||||||
1. Flathub's automated CI will build your app
|
1. Flathub's automated CI will build your app
|
||||||
2. A maintainer will review your submission
|
2. A maintainer will review your submission
|
||||||
3. Once approved, a new repo `flathub/su.reya.signed` will be created
|
3. Once approved, a new repo `flathub/info.reya.signed` will be created
|
||||||
4. You'll get write access to maintain the app
|
4. You'll get write access to maintain the app
|
||||||
5. Future updates: Push new commits to `flathub/su.reya.signed`
|
5. Future updates: Push new commits to `flathub/info.reya.signed`
|
||||||
|
|
||||||
## Updating the App
|
## Updating the App
|
||||||
|
|
||||||
@@ -104,9 +104,9 @@ To release a new version:
|
|||||||
2. Tag the new release: `git tag -a v0.1.0 -m "Release v0.1.0"`
|
2. Tag the new release: `git tag -a v0.1.0 -m "Release v0.1.0"`
|
||||||
3. Push the tag: `git push origin v0.1.0`
|
3. Push the tag: `git push origin v0.1.0`
|
||||||
4. Run `./script/prepare-flathub` to regenerate
|
4. Run `./script/prepare-flathub` to regenerate
|
||||||
5. Clone the flathub repo: `git clone https://github.com/flathub/su.reya.signed.git`
|
5. Clone the flathub repo: `git clone https://github.com/flathub/info.reya.signed.git`
|
||||||
6. Update the manifest with new commit/tag and hashes
|
6. Update the manifest with new commit/tag and hashes
|
||||||
7. Submit PR to `flathub/su.reya.signed`
|
7. Submit PR to `flathub/info.reya.signed`
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ To release a new version:
|
|||||||
- Ensure `vendor.tar.gz` is properly extracted before building
|
- Ensure `vendor.tar.gz` is properly extracted before building
|
||||||
|
|
||||||
### Linter complains about metainfo
|
### Linter complains about metainfo
|
||||||
- Ensure `su.reya.signed.metainfo.xml` has at least one `<release>` entry
|
- Ensure `info.reya.signed.metainfo.xml` has at least one `<release>` entry
|
||||||
- Add accessible screenshot URLs if required
|
- Add accessible screenshot URLs if required
|
||||||
|
|
||||||
### Missing dependencies
|
### Missing dependencies
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ archive_match="signed(-[a-zA-Z0-9]+)?-linux-${ARCH_SUFFIX}\.tar\.gz"
|
|||||||
archive=$(ls "target/release" | grep -E ${archive_match})
|
archive=$(ls "target/release" | grep -E ${archive_match})
|
||||||
|
|
||||||
export ARCHIVE="$archive"
|
export ARCHIVE="$archive"
|
||||||
export APP_ID="su.reya.signed"
|
export APP_ID="info.reya.signed"
|
||||||
export APP_NAME="Signed"
|
export APP_NAME="Signed"
|
||||||
export BRANDING_LIGHT="#C6FF4D"
|
export BRANDING_LIGHT="#C6FF4D"
|
||||||
export BRANDING_DARK="#C6FF4D"
|
export BRANDING_DARK="#C6FF4D"
|
||||||
|
|||||||
+10
-10
@@ -4,7 +4,7 @@
|
|||||||
# This script:
|
# This script:
|
||||||
# 1. Vendors all Rust dependencies (crates.io + git)
|
# 1. Vendors all Rust dependencies (crates.io + git)
|
||||||
# 2. Generates release info for metainfo.xml
|
# 2. Generates release info for metainfo.xml
|
||||||
# 3. Creates the Flathub manifest (su.reya.signed.yml)
|
# 3. Creates the Flathub manifest (info.reya.signed.yml)
|
||||||
#
|
#
|
||||||
# Usage: ./script/prepare-flathub [--release-date YYYY-MM-DD]
|
# Usage: ./script/prepare-flathub [--release-date YYYY-MM-DD]
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ set -euo pipefail
|
|||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
APP_ID="su.reya.signed"
|
APP_ID="info.reya.signed"
|
||||||
APP_NAME="Signed"
|
APP_NAME="Signed"
|
||||||
REPO_URL="https://git.reya.su/reya/signed"
|
REPO_URL="https://git.reya.su/reya/signed"
|
||||||
BRANDING_LIGHT="#C6FF4D"
|
BRANDING_LIGHT="#C6FF4D"
|
||||||
@@ -106,7 +106,7 @@ COMMIT=$(git rev-parse HEAD)
|
|||||||
|
|
||||||
# Generate the YAML manifest
|
# Generate the YAML manifest
|
||||||
cat > flathub/${APP_ID}.yml << 'MANIFEST_EOF'
|
cat > flathub/${APP_ID}.yml << 'MANIFEST_EOF'
|
||||||
id: su.reya.signed
|
id: info.reya.signed
|
||||||
runtime: org.freedesktop.Platform
|
runtime: org.freedesktop.Platform
|
||||||
runtime-version: "24.08"
|
runtime-version: "24.08"
|
||||||
sdk: org.freedesktop.Sdk
|
sdk: org.freedesktop.Sdk
|
||||||
@@ -153,22 +153,22 @@ modules:
|
|||||||
- install -Dm755 target/release/signed /app/bin/signed
|
- install -Dm755 target/release/signed /app/bin/signed
|
||||||
|
|
||||||
# Install icons
|
# Install icons
|
||||||
- install -Dm644 desktop/resources/icon.png /app/share/icons/hicolor/512x512/apps/su.reya.signed.png
|
- install -Dm644 desktop/resources/icon.png /app/share/icons/hicolor/512x512/apps/info.reya.signed.png
|
||||||
- install -Dm644 desktop/resources/icon@2x.png /app/share/icons/hicolor/1024x1024/apps/su.reya.signed.png
|
- install -Dm644 desktop/resources/icon@2x.png /app/share/icons/hicolor/1024x1024/apps/info.reya.signed.png
|
||||||
|
|
||||||
# Install desktop file
|
# Install desktop file
|
||||||
- |
|
- |
|
||||||
export APP_ID="su.reya.signed"
|
export APP_ID="info.reya.signed"
|
||||||
export APP_ICON="su.reya.signed"
|
export APP_ICON="info.reya.signed"
|
||||||
export APP_NAME="Signed"
|
export APP_NAME="Signed"
|
||||||
export APP_CLI="signed"
|
export APP_CLI="signed"
|
||||||
export APP_ARGS="%U"
|
export APP_ARGS="%U"
|
||||||
export DO_STARTUP_NOTIFY="true"
|
export DO_STARTUP_NOTIFY="true"
|
||||||
envsubst < desktop/resources/signed.desktop.in > signed.desktop
|
envsubst < desktop/resources/signed.desktop.in > signed.desktop
|
||||||
install -Dm644 signed.desktop /app/share/applications/su.reya.signed.desktop
|
install -Dm644 signed.desktop /app/share/applications/info.reya.signed.desktop
|
||||||
|
|
||||||
# Install metainfo (use pre-generated one with release info)
|
# Install metainfo (use pre-generated one with release info)
|
||||||
- install -Dm644 su.reya.signed.metainfo.xml /app/share/metainfo/su.reya.signed.metainfo.xml
|
- install -Dm644 info.reya.signed.metainfo.xml /app/share/metainfo/info.reya.signed.metainfo.xml
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
# Main source code - specific commit
|
# Main source code - specific commit
|
||||||
@@ -184,7 +184,7 @@ modules:
|
|||||||
|
|
||||||
# Pre-generated metainfo with release info
|
# Pre-generated metainfo with release info
|
||||||
- type: file
|
- type: file
|
||||||
path: su.reya.signed.metainfo.xml
|
path: info.reya.signed.metainfo.xml
|
||||||
sha256: "@METAINFO_SHA256@"
|
sha256: "@METAINFO_SHA256@"
|
||||||
|
|
||||||
# Cargo config for vendoring
|
# Cargo config for vendoring
|
||||||
|
|||||||
Reference in New Issue
Block a user