Skip to content

Add windows support #33

Add windows support

Add windows support #33

Workflow file for this run

name: Build apps
on: [push]
jobs:
linux:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./app
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libcurl4-openssl-dev
- run: flutter build linux
- uses: actions/upload-artifact@v4
with:
name: pikatorrent-linux
path: app/build/linux/x64/release/bundle/**/*
android:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./app
with:
submodules: true
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:

Check failure on line 37 in .github/workflows/build-apps.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-apps.yml

Invalid workflow file

You have an error in your yaml syntax on line 37
vcpkgDirectory: ${{ github.workspace }}/app/vcpkg
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build
- run: flutter build apk
- uses: actions/upload-artifact@v4
with:
name: pikatorrent-android
path: app/build/app/outputs/apk/release/app-release.apk
windows:
runs-on: windows-2022
env:
# Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/25936
TRANSMISSION_PREFIX: ${{ github.workspace }}/transmission-prefix
VCPKG_MANIFEST_DIR: ${{ github.workspace }}/app
defaults:
run:
working-directory: ./app
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: ${{ github.workspace }}/app/vcpkg
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter build windows
- uses: actions/upload-artifact@v4
with:
name: pikatorrent-windows
path: app/build/windows/runner/Release/**/*