-
Notifications
You must be signed in to change notification settings - Fork 66
/
bundle.yml
74 lines (74 loc) · 2.44 KB
/
bundle.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
targets:
- platform: all
arch: generic
command: false
- platform: linux
arch: x64
command: ['{{caxa}}/home-gallery/node/bin/node', '{{caxa}}/home-gallery/gallery.js']
#- platform: linux
# arch: arm64
# command: ['{{caxa}}/home-gallery/node/bin/node', '{{caxa}}/home-gallery/gallery.js']
- platform: win
arch: x64
command: ['{{caxa}}/home-gallery/node/node.exe', '{{caxa}}/home-gallery/gallery.js']
- platform: darwin
arch: x64
command: ['{{caxa}}/home-gallery/node/bin/node', '{{caxa}}/home-gallery/gallery.js']
before:
- npm run clean
- npm run build
- npm install --force --no-save @ffmpeg-installer/linux-x64 @ffmpeg-installer/win32-x64 @ffmpeg-installer/darwin-x64 @ffprobe-installer/linux-x64 @ffprobe-installer/win32-x64 @ffprobe-installer/darwin-x64 exiftool-vendored.exe exiftool-vendored.pl
- node scripts/download-nodejs.js --version=20.16.0 --platforms=linux-x64,darwin-x64,win-x64 --targetDir=node
run:
- npx rimraf node_modules/sharp/{build,vendor,platform.json}
- command: npm --prefix=node_modules/sharp --platform=linux --arch=x64 --sharp-install-force run install
platformArch: linux-x64
#- command: npm --prefix=node_modules/sharp --platform=linux --arch=arm64 --sharp-install-force run install
# platformArch: linux-arm64
- command: npm --prefix=node_modules/sharp --platform=darwin --arch=x64 run install
platformArch: darwin-x64
- command: npm --prefix=node_modules/sharp --platform=win32 --arch=x64 run install
platformArch: win-x64
packages:
- './packages/cli'
includes:
- ./package.json
- ./CHANGELOG.md
- ./README.md
- ./LICENSE
- ./gallery.js
- ./gallery.config-example.yml
- ./.build.json
- pattern: node/linux-x64
platformArch: linux-x64
- pattern: node/linux-arm64
platformArch: linux-arm64
- pattern: node/darwin-x64
platformArch: darwin-x64
- pattern: node/win-x64
platformArch: win-x64
excludes:
- node_modules/.bin/*
- '*/node_modules/.bin/*'
- node_modules/.cache/*
- '*/node_modules/.cache/*'
- pattern: node_modules/sharp
arch: generic
map:
- packages/: node_modules/@home-gallery/
- from: node/linux-x64/
to: node/
platformArch: linux-x64
- from: node/linux-arm64/
to: node/
platformArch: linux-arm64
- from: node/darwin-x64/
to: node/
platformArch: darwin-x64
- from: node/win-x64/
to: node/
platformArch: win-x64
output:
dir: dist
name: home-gallery
prefix: home-gallery/