aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: ed013f19b3324732221007adcf8f8e3376840938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
image: alpine/latest
packages:
  - py3-pip
  - p7zip
  - zip
sources:
  - https://git.sr.ht/~boringcactus/vidslice
tasks:
  - install: |
      cd vidslice
      python3 -m pip install -r requirements.txt
  - build: |
      cd vidslice
      python3 -m zipapp vidslice -o vidslice.pyw -c
  - build-full: |
      cd vidslice
      wget https://yt-dl.org/downloads/latest/youtube-dl.exe
      wget https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z
      p7zip -d ffmpeg-release-full-shared.7z
      cd ffmpeg-*-full_build-shared
      cp LICENSE ../LICENSE-ffmpeg
      cp bin/* ../
      cd ..
      zip vidslice-full-win.zip vidslice.pyw *.exe *.dll LICENSE LICENSE-ffmpeg
artifacts:
  - vidslice/vidslice.pyw
  - vidslice/vidslice-full-win.zip