Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Fix release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 13, 2020
1 parent c70676b commit eaf869d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
image: ubuntu:18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup up User
run: |
apt update
Expand All @@ -65,12 +67,14 @@ jobs:
python3.8 get-pip.py
mv `which python3.8` `which python3`
sudo apt install -y libtool libcairo-dev
sudo apt -y install libxcb-xinerama0
sudo apt -y install build-essential
git clone https://github.com/srevinsaju/pyappimage --depth=1 pyapim
cd pyapim
python3 -m pip install -r requirements.txt
python3 -m pip install .
cd ..
echo "$(git describe --tags --always --match '*[0-9]*')"
sed -i 's,qtpy,PySide2,g' ./**/*.py
sed -i 's,qtpy,PySide2,g' **/*.py
sed -i 's,PyQt5,PySide2,g' *.py
Expand All @@ -90,16 +94,11 @@ jobs:
chmod +x appimagetool-x86_64.AppImage
ARCH=x86_64 ./appimagetool*.AppImage -n guiscrcpy.AppDir
./guiscrcpy*.AppImage --appimage-extract
cd squashfs-root/scrcpy
wget https://github.com/AppImageCrafters/AppRun/releases/download/v1.1.2/AppRun-amd64 -O AppRun && chmod +x AppRun
wget https://github.com/AppImageCrafters/AppRun/releases/download/v1.1.2/libapprun_hooks-amd64.so -O libapprun_hooks.so && chmod +x libapprun_hooks.so
cd ../..
cp pyappimage/.env.template squashfs-root/scrcpy/.env
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./appimagetool*.AppImage squashfs-root -n -u 'gh-releases-zsync|srevinsaju|guiscrcpy|continuous|guiscrcpy*.AppImage.zsync' guiscrcpy-$(git describe --tags --match '[0-9]*')-$(uname -m).AppImage
./appimagetool*.AppImage squashfs-root -n -u 'gh-releases-zsync|srevinsaju|guiscrcpy|latest|guiscrcpy*.AppImage.zsync' guiscrcpy-$(git describe --tags --match '*[0-9]*' --always)-$(uname -m).AppImage
mkdir dist
mv guiscrcpy-$(git describe --tags --match '[0-9]*')-$(uname -m).AppImage* dist/.
mv guiscrcpy-$(git describe --tags --match '*[0-9]*' --always)-$(uname -m).AppImage* dist/.
- name: Install Destop Environment
Expand Down Expand Up @@ -135,7 +134,6 @@ jobs:
name: guiscrcpy-continuous-x86_64.AppImage
path: 'dist/'


Windows:
name: Windows
runs-on: windows-latest
Expand Down Expand Up @@ -205,7 +203,8 @@ jobs:
name: guiscrcpy-pyside2-continuous.exe
# Directory containing files to upload
path: dist/guiscrcpy-pyside2.exe



Release:
needs: [Windows, AppImage, Wheel, Windows-PySide2]
runs-on: ubuntu-latest
Expand Down

0 comments on commit eaf869d

Please sign in to comment.