mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-11-25 15:53:10 +01:00
v4.7
This commit is contained in:
1 parent
e05a9379fc
commit
c42808431c
31 files changed
+3187
-2798
No files matched your search
+39
-11
@@ -151,8 +151,28 @@ jobs:
|
||||
retention-days: 7
|
||||
|
||||
build-linux:
|
||||
name: Build Linux
|
||||
runs-on: ubuntu-24.04
|
||||
name: Build Linux (${{ matrix.display_name }})
|
||||
runs-on: ${{ matrix.runner }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- display_name: amd64
|
||||
runner: ubuntu-24.04
|
||||
wails_platform: linux/amd64
|
||||
artifact_name: linux-portable
|
||||
output_name: TwitterXMediaBatchDownloader.AppImage
|
||||
appimage_arch: x86_64
|
||||
appimagetool_arch: x86_64
|
||||
pkgconfig_dir: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
- display_name: arm64
|
||||
runner: ubuntu-24.04-arm
|
||||
wails_platform: linux/arm64
|
||||
artifact_name: linux-portable-arm
|
||||
output_name: TwitterXMediaBatchDownloader-ARM.AppImage
|
||||
appimage_arch: aarch64
|
||||
appimagetool_arch: aarch64
|
||||
pkgconfig_dir: /usr/lib/aarch64-linux-gnu/pkgconfig
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -189,7 +209,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libfuse2 imagemagick upx-ucl
|
||||
sudo ln -sf /usr/lib/x86_64-linux-gnu/pkgconfig/webkit2gtk-4.1.pc /usr/lib/x86_64-linux-gnu/pkgconfig/webkit2gtk-4.0.pc
|
||||
sudo ln -sf "${{ matrix.pkgconfig_dir }}/webkit2gtk-4.1.pc" "${{ matrix.pkgconfig_dir }}/webkit2gtk-4.0.pc"
|
||||
|
||||
- name: Install Wails CLI
|
||||
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
@@ -201,7 +221,7 @@ jobs:
|
||||
pnpm run generate-icon
|
||||
|
||||
- name: Build application
|
||||
run: wails build -platform linux/amd64
|
||||
run: wails build -platform ${{ matrix.wails_platform }}
|
||||
|
||||
- name: Compress with UPX
|
||||
run: upx --best --lzma "build/bin/${{ env.APP_NAME }}"
|
||||
@@ -211,13 +231,13 @@ jobs:
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: appimagetool
|
||||
key: appimagetool-x86_64-v2
|
||||
key: appimagetool-${{ matrix.appimagetool_arch }}-v2
|
||||
|
||||
- name: Download appimagetool
|
||||
if: steps.cache-appimagetool.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
wget --timeout=30 --tries=5 --retry-connrefused --waitretry=5 -O appimagetool "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage" || \
|
||||
wget --timeout=30 --tries=5 --retry-connrefused --waitretry=5 -O appimagetool "https://github.com/AppImage/appimagetool/releases/download/1.9.1/appimagetool-x86_64.AppImage"
|
||||
wget --timeout=30 --tries=5 --retry-connrefused --waitretry=5 -O appimagetool "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-${{ matrix.appimagetool_arch }}.AppImage" || \
|
||||
wget --timeout=30 --tries=5 --retry-connrefused --waitretry=5 -O appimagetool "https://github.com/AppImage/appimagetool/releases/download/1.9.1/appimagetool-${{ matrix.appimagetool_arch }}.AppImage"
|
||||
|
||||
- name: Make appimagetool executable
|
||||
run: chmod +x appimagetool
|
||||
@@ -266,13 +286,13 @@ jobs:
|
||||
chmod +x AppDir/AppRun
|
||||
|
||||
mkdir -p dist
|
||||
ARCH=x86_64 ./appimagetool --no-appstream AppDir "dist/${{ env.APP_NAME }}.AppImage"
|
||||
ARCH=${{ matrix.appimage_arch }} ./appimagetool --no-appstream AppDir "dist/${{ matrix.output_name }}"
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-portable
|
||||
path: dist/${{ env.APP_NAME }}.AppImage
|
||||
name: ${{ matrix.artifact_name }}
|
||||
path: dist/${{ matrix.output_name }}
|
||||
retention-days: 7
|
||||
|
||||
create-release:
|
||||
@@ -307,7 +327,8 @@ jobs:
|
||||
|
||||
- `TwitterXMediaBatchDownloader.exe` - Windows
|
||||
- `TwitterXMediaBatchDownloader.dmg` - macOS
|
||||
- `TwitterXMediaBatchDownloader.AppImage` - Linux
|
||||
- `TwitterXMediaBatchDownloader.AppImage` - Linux AMD64
|
||||
- `TwitterXMediaBatchDownloader-ARM.AppImage` - Linux ARM64
|
||||
|
||||
<details>
|
||||
<summary><b>Linux Requirements</b></summary>
|
||||
@@ -335,10 +356,17 @@ jobs:
|
||||
./TwitterXMediaBatchDownloader.AppImage
|
||||
```
|
||||
|
||||
For ARM64:
|
||||
```bash
|
||||
chmod +x TwitterXMediaBatchDownloader-ARM.AppImage
|
||||
./TwitterXMediaBatchDownloader-ARM.AppImage
|
||||
```
|
||||
|
||||
</details>
|
||||
files: |
|
||||
artifacts/windows-portable/${{ env.APP_NAME }}.exe
|
||||
artifacts/macos-portable/${{ env.APP_NAME }}.dmg
|
||||
artifacts/linux-portable/${{ env.APP_NAME }}.AppImage
|
||||
artifacts/linux-portable-arm/${{ env.APP_NAME }}-ARM.AppImage
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user