-
Notifications
You must be signed in to change notification settings - Fork 528
Feat/duplicate best shot detection #953
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
Open
hharshhsaini
wants to merge
5
commits into
AOSSIE-Org:main
Choose a base branch
from
hharshhsaini:feat/duplicate-best-shot-detection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
72effa0
feat: Add AUR (Arch User Repository) support for Arch Linux builds #946
hharshhsaini e054ba1
feat: Add confirmation dialog before folder deletion #939
hharshhsaini 5a64272
fix: Add React Error Boundary to prevent app crashes #937
hharshhsaini 231baca
fix: Prevent RecursionError in logging handler on Python 3.12 #918
hharshhsaini 3f98047
feat: Add duplicate detection and best shot suggestion #905
hharshhsaini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,162 @@ | ||
| name: Publish to AUR | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: "Tag name for the release (e.g., v1.1.0)" | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| publish-aur: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Get version from tag | ||
| id: get_version | ||
| run: | | ||
| if [ "${{ github.event_name }}" = "release" ]; then | ||
| TAG="${{ github.event.release.tag_name }}" | ||
| else | ||
| TAG="${{ github.event.inputs.tag }}" | ||
| fi | ||
| # Remove 'v' prefix if present | ||
| VERSION="${TAG#v}" | ||
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | ||
| echo "tag=${TAG}" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Wait for release assets | ||
| run: | | ||
| echo "Waiting for release assets to be available..." | ||
| sleep 60 | ||
|
|
||
| - name: Calculate SHA256 checksums | ||
| id: checksums | ||
| run: | | ||
| VERSION="${{ steps.get_version.outputs.version }}" | ||
| BASE_URL="https://github.com/AOSSIE-Org/PictoPy/releases/download/v${VERSION}" | ||
|
|
||
| # Download and calculate checksums for x86_64 | ||
| echo "Downloading x86_64 tarball..." | ||
| if curl -fLo pictopy_amd64.tar.gz "${BASE_URL}/pictopy_${VERSION}_amd64.tar.gz"; then | ||
| SHA256_X86_64=$(sha256sum pictopy_amd64.tar.gz | cut -d' ' -f1) | ||
| echo "sha256_x86_64=${SHA256_X86_64}" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "sha256_x86_64=SKIP" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| # Download and calculate checksums for aarch64 | ||
| echo "Downloading aarch64 tarball..." | ||
| if curl -fLo pictopy_arm64.tar.gz "${BASE_URL}/pictopy_${VERSION}_arm64.tar.gz"; then | ||
| SHA256_AARCH64=$(sha256sum pictopy_arm64.tar.gz | cut -d' ' -f1) | ||
| echo "sha256_aarch64=${SHA256_AARCH64}" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "sha256_aarch64=SKIP" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: Update PKGBUILD | ||
| run: | | ||
| VERSION="${{ steps.get_version.outputs.version }}" | ||
| SHA256_X86_64="${{ steps.checksums.outputs.sha256_x86_64 }}" | ||
| SHA256_AARCH64="${{ steps.checksums.outputs.sha256_aarch64 }}" | ||
|
|
||
| cd aur | ||
|
|
||
| # Update version in PKGBUILD | ||
| sed -i "s/^pkgver=.*/pkgver=${VERSION}/" PKGBUILD | ||
| sed -i "s/^pkgrel=.*/pkgrel=1/" PKGBUILD | ||
|
|
||
| # Update source URLs | ||
| sed -i "s|pictopy_[0-9.]*_amd64|pictopy_${VERSION}_amd64|g" PKGBUILD | ||
| sed -i "s|pictopy_[0-9.]*_arm64|pictopy_${VERSION}_arm64|g" PKGBUILD | ||
| sed -i "s|/v[0-9.]*/|/v${VERSION}/|g" PKGBUILD | ||
|
|
||
| # Update checksums | ||
| if [ "${SHA256_X86_64}" != "SKIP" ]; then | ||
| sed -i "s/^sha256sums_x86_64=.*/sha256sums_x86_64=('${SHA256_X86_64}')/" PKGBUILD | ||
| fi | ||
| if [ "${SHA256_AARCH64}" != "SKIP" ]; then | ||
| sed -i "s/^sha256sums_aarch64=.*/sha256sums_aarch64=('${SHA256_AARCH64}')/" PKGBUILD | ||
| fi | ||
|
|
||
| cat PKGBUILD | ||
|
|
||
| - name: Generate .SRCINFO | ||
| run: | | ||
| cd aur | ||
|
|
||
| VERSION="${{ steps.get_version.outputs.version }}" | ||
| SHA256_X86_64="${{ steps.checksums.outputs.sha256_x86_64 }}" | ||
| SHA256_AARCH64="${{ steps.checksums.outputs.sha256_aarch64 }}" | ||
|
|
||
| cat > .SRCINFO << EOF | ||
| pkgbase = pictopy | ||
| pkgdesc = A privacy-focused photo management application with AI-powered tagging and face recognition | ||
| pkgver = ${VERSION} | ||
| pkgrel = 1 | ||
| url = https://github.com/AOSSIE-Org/PictoPy | ||
| install = pictopy.install | ||
| arch = x86_64 | ||
| arch = aarch64 | ||
| license = MIT | ||
| makedepends = rust | ||
| makedepends = cargo | ||
| makedepends = nodejs | ||
| makedepends = npm | ||
| makedepends = python | ||
| makedepends = python-pip | ||
| makedepends = pyinstaller | ||
| makedepends = webkit2gtk-4.1 | ||
| makedepends = base-devel | ||
| makedepends = curl | ||
| makedepends = wget | ||
| makedepends = file | ||
| makedepends = openssl | ||
| makedepends = appmenu-gtk-module | ||
| makedepends = librsvg | ||
| depends = webkit2gtk-4.1 | ||
| depends = gtk3 | ||
| depends = glib2 | ||
| depends = cairo | ||
| depends = pango | ||
| depends = gdk-pixbuf2 | ||
| depends = libsoup3 | ||
| depends = openssl | ||
| depends = hicolor-icon-theme | ||
| optdepends = python-onnxruntime: For AI model inference | ||
| optdepends = python-opencv: For image processing | ||
| optdepends = python-numpy: For numerical operations | ||
| options = !strip | ||
| options = !emptydirs | ||
| source_x86_64 = pictopy-${VERSION}-x86_64.tar.gz::https://github.com/AOSSIE-Org/PictoPy/releases/download/v${VERSION}/pictopy_${VERSION}_amd64.tar.gz | ||
| sha256sums_x86_64 = ${SHA256_X86_64} | ||
| source_aarch64 = pictopy-${VERSION}-aarch64.tar.gz::https://github.com/AOSSIE-Org/PictoPy/releases/download/v${VERSION}/pictopy_${VERSION}_arm64.tar.gz | ||
| sha256sums_aarch64 = ${SHA256_AARCH64} | ||
|
|
||
| pkgname = pictopy | ||
| EOF | ||
|
|
||
| # Remove leading whitespace | ||
| sed -i 's/^ //' .SRCINFO | ||
|
|
||
| cat .SRCINFO | ||
|
|
||
| - name: Publish to AUR | ||
| uses: KSXGitHub/[email protected] | ||
| with: | ||
| pkgname: pictopy | ||
| pkgbuild: ./aur/PKGBUILD | ||
| commit_username: ${{ secrets.AUR_USERNAME }} | ||
| commit_email: ${{ secrets.AUR_EMAIL }} | ||
| ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
| commit_message: "Update to version ${{ steps.get_version.outputs.version }}" | ||
| ssh_keyscan_types: ed25519 | ||
| force_push: true | ||
| assets: | | ||
| ./aur/pictopy.install | ||
| ./aur/.SRCINFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| pkgbase = pictopy | ||
| pkgdesc = A privacy-focused photo management application with AI-powered tagging and face recognition | ||
| pkgver = 1.1.0 | ||
| pkgrel = 1 | ||
| url = https://github.com/AOSSIE-Org/PictoPy | ||
| install = pictopy.install | ||
| arch = x86_64 | ||
| arch = aarch64 | ||
| license = MIT | ||
| makedepends = rust | ||
| makedepends = cargo | ||
| makedepends = nodejs | ||
| makedepends = npm | ||
| makedepends = python | ||
| makedepends = python-pip | ||
| makedepends = pyinstaller | ||
| makedepends = webkit2gtk-4.1 | ||
| makedepends = base-devel | ||
| makedepends = curl | ||
| makedepends = wget | ||
| makedepends = file | ||
| makedepends = openssl | ||
| makedepends = appmenu-gtk-module | ||
| makedepends = librsvg | ||
| depends = webkit2gtk-4.1 | ||
| depends = gtk3 | ||
| depends = glib2 | ||
| depends = cairo | ||
| depends = pango | ||
| depends = gdk-pixbuf2 | ||
| depends = libsoup3 | ||
| depends = openssl | ||
| depends = hicolor-icon-theme | ||
| optdepends = python-onnxruntime: For AI model inference | ||
| optdepends = python-opencv: For image processing | ||
| optdepends = python-numpy: For numerical operations | ||
| options = !strip | ||
| options = !emptydirs | ||
| source_x86_64 = pictopy-1.1.0-x86_64.tar.gz::https://github.com/AOSSIE-Org/PictoPy/releases/download/v1.1.0/pictopy_1.1.0_amd64.tar.gz | ||
| sha256sums_x86_64 = SKIP | ||
| source_aarch64 = pictopy-1.1.0-aarch64.tar.gz::https://github.com/AOSSIE-Org/PictoPy/releases/download/v1.1.0/pictopy_1.1.0_arm64.tar.gz | ||
| sha256sums_aarch64 = SKIP | ||
|
|
||
| pkgname = pictopy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| # Maintainer: AOSSIE <[email protected]> | ||
| # Contributor: PictoPy Team | ||
|
|
||
| pkgname=pictopy | ||
| pkgver=1.1.0 | ||
| pkgrel=1 | ||
| pkgdesc="A privacy-focused photo management application with AI-powered tagging and face recognition" | ||
| arch=('x86_64' 'aarch64') | ||
| url="https://github.com/AOSSIE-Org/PictoPy" | ||
| license=('MIT') | ||
| depends=( | ||
| 'webkit2gtk-4.1' | ||
| 'gtk3' | ||
| 'glib2' | ||
| 'cairo' | ||
| 'pango' | ||
| 'gdk-pixbuf2' | ||
| 'libsoup3' | ||
| 'openssl' | ||
| 'hicolor-icon-theme' | ||
| ) | ||
| makedepends=( | ||
| 'rust' | ||
| 'cargo' | ||
| 'nodejs' | ||
| 'npm' | ||
| 'python' | ||
| 'python-pip' | ||
| 'pyinstaller' | ||
| 'webkit2gtk-4.1' | ||
| 'base-devel' | ||
| 'curl' | ||
| 'wget' | ||
| 'file' | ||
| 'openssl' | ||
| 'appmenu-gtk-module' | ||
| 'librsvg' | ||
| ) | ||
| optdepends=( | ||
| 'python-onnxruntime: For AI model inference' | ||
| 'python-opencv: For image processing' | ||
| 'python-numpy: For numerical operations' | ||
| ) | ||
| options=('!strip' '!emptydirs') | ||
| install=${pkgname}.install | ||
| source_x86_64=("${pkgname}-${pkgver}-x86_64.tar.gz::${url}/releases/download/v${pkgver}/pictopy_${pkgver}_amd64.tar.gz") | ||
| source_aarch64=("${pkgname}-${pkgver}-aarch64.tar.gz::${url}/releases/download/v${pkgver}/pictopy_${pkgver}_arm64.tar.gz") | ||
| sha256sums_x86_64=('SKIP') | ||
| sha256sums_aarch64=('SKIP') | ||
|
|
||
| package() { | ||
| cd "${srcdir}" | ||
|
|
||
| # Install the main application binary | ||
| install -Dm755 "usr/bin/picto-py" "${pkgdir}/usr/bin/pictopy" | ||
|
|
||
| # Install libraries and resources | ||
| if [ -d "usr/lib" ]; then | ||
| cp -r usr/lib "${pkgdir}/usr/" | ||
| fi | ||
|
|
||
| # Install desktop entry | ||
| install -Dm644 "usr/share/applications/picto-py.desktop" \ | ||
| "${pkgdir}/usr/share/applications/pictopy.desktop" | ||
|
|
||
| # Update desktop entry to use correct binary name | ||
| sed -i 's/Exec=picto-py/Exec=pictopy/g' "${pkgdir}/usr/share/applications/pictopy.desktop" | ||
|
|
||
| # Install icons | ||
| for size in 32x32 128x128 256x256; do | ||
| if [ -f "usr/share/icons/hicolor/${size}/apps/picto-py.png" ]; then | ||
| install -Dm644 "usr/share/icons/hicolor/${size}/apps/picto-py.png" \ | ||
| "${pkgdir}/usr/share/icons/hicolor/${size}/apps/pictopy.png" | ||
| fi | ||
| done | ||
|
|
||
| # Install scalable icon if available | ||
| if [ -f "usr/share/icons/hicolor/scalable/apps/picto-py.svg" ]; then | ||
| install -Dm644 "usr/share/icons/hicolor/scalable/apps/picto-py.svg" \ | ||
| "${pkgdir}/usr/share/icons/hicolor/scalable/apps/pictopy.svg" | ||
| fi | ||
|
|
||
| # Install license | ||
| install -Dm644 "${srcdir}/../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 2>/dev/null || true | ||
hharshhsaini marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.