The ability to select multiple geo-bypass locations has been added an… #67
Workflow file for this run
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
name: Build and Release Linux App | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
contents: write | |
jobs: | |
build-linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libxcb-keysyms1 \ | |
libxcb-render-util0 \ | |
libxkbcommon-x11-0 \ | |
libxcb-xinerama0 \ | |
libxcb-image0 \ | |
libxcb-xkb1 \ | |
libxcb-shape0 \ | |
libxcb-icccm4 \ | |
appstream \ | |
libfuse2 | |
- name: Install Python dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: Build Linux App | |
run: | | |
pyinstaller --noconfirm --onefile --windowed --name YoutubeGo \ | |
--add-data "assets:assets" \ | |
--add-data "ui/themes:ui/themes" \ | |
main.py | |
mkdir -p AppDir/usr/bin | |
mkdir -p AppDir/usr/share/applications | |
mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps | |
cp dist/YoutubeGo AppDir/usr/bin/YoutubeGo | |
cp assets/app.png AppDir/usr/share/icons/hicolor/256x256/apps/YoutubeGo.png | |
cp assets/app.png AppDir/YoutubeGo.png | |
echo "[Desktop Entry]" > AppDir/YoutubeGo.desktop | |
echo "Name=YoutubeGo" >> AppDir/YoutubeGo.desktop | |
echo "Exec=YoutubeGo" >> AppDir/YoutubeGo.desktop | |
echo "Icon=YoutubeGo" >> AppDir/YoutubeGo.desktop | |
echo "Type=Application" >> AppDir/YoutubeGo.desktop | |
echo "Categories=AudioVideo;Video;" >> AppDir/YoutubeGo.desktop | |
echo "Comment=YouTube video downloader" >> AppDir/YoutubeGo.desktop | |
echo '#!/bin/sh' > AppDir/AppRun | |
echo 'exec "$APPDIR/usr/bin/YoutubeGo" "$@"' >> AppDir/AppRun | |
chmod +x AppDir/AppRun | |
- name: Create AppImage | |
run: | | |
curl -L https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -o appimagetool | |
chmod +x appimagetool | |
./appimagetool AppDir | |
mkdir -p dist | |
mv YoutubeGo-x86_64.AppImage dist/ | |
- name: Upload to GitHub Releases | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: 'dist/YoutubeGo-x86_64.AppImage' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |