Skip to content

Commit

Permalink
app-image
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan1986 committed Mar 3, 2024
1 parent 64df591 commit 92dd336
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
52 changes: 51 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,58 @@ jobs:
name: ${{ env.platform }}-${{ matrix.nwjs }}
path: build

release:
packs:
needs: build
name: Packs
runs-on: ubuntu-latest

strategy:
matrix:
nwjs: ['0.44.5', '0.82.0']

steps:
- name: Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v4
with:
path: repo
persist-credentials: false

- uses: actions/download-artifact@v4
with:
name: linux-${{ matrix.nwjs }}
path: .

- name: Display structure of downloaded files
run: ls -R .

- name: Build AppImage
run: |
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
VER = $(ls *-linux64.zip | sed 's/-linux64.zip//')
echo $VER
unzip *-linux64.zip
mv $VER $VER.AppDir
copy repo/dist/linux/appimage/* $VER.AppDir/
ln -s Popcorn-Time $VER.AppDir/AppRun
ls -R .
mkdir build
./appimagetool-x86_64.AppImage $VER.AppDir build/$VER-x86_64.AppImage
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: linux-app-${{ matrix.nwjs }}
path: build


release:
needs: packs
name: Release
runs-on: ubuntu-latest
steps:
Expand Down
11 changes: 11 additions & 0 deletions dist/linux/appimage/Popcorn-Time.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Comment=Watch Movies and TV Shows instantly
Name=Popcorn-Time
Exec=Popcorn-Time %U
Icon=Popcorn-Time
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
StartupNotify=false
Categories=AudioVideo
Type=Application
X-Desktop-File-Install-Version=0.26

Binary file added dist/linux/appimage/Popcorn-Time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 92dd336

Please sign in to comment.