Repository navigation
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
153 lines (140 loc) · 3.96 KB
/
Copy pathelectron-builder.yml
File metadata and controls
153 lines (140 loc) · 3.96 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
appId: com.lightricks.ltx-desktop
productName: LTX Desktop
copyright: Copyright © 2026 Lightricks
protocols:
name: LTX Desktop
schemes:
- ltxdesktop
directories:
output: release
buildResources: resources
files:
- dist/**/*
- dist-electron/**/*
- package.json
- LICENSE.txt
- NOTICES.md
- "!**/*.map"
asarUnpack:
- dist/splash/**
# koffi 3.x loads ../../@koromix/koffi-${platform}-${arch} from its JS.
# Unpack that package so require() can load the .node from disk, not asar.
- node_modules/@koromix/**/*
# Also copy the .node to resources/koffi/${platform}_${arch}/ (Koffi's Electron
# lookup). Pack fails if the optional native package is missing on the builder.
afterPack: scripts/copy-koffi-native.cjs
extraResources:
- from: resources/explore-assets
to: explore-assets
- from: dist-remote
to: dist-remote
- from: backend
to: backend
filter:
- "**/*.py"
- "**/*.sql"
- pyproject.toml
- runtime_config/lora_catalog.json
- "!**/__pycache__/**"
- "!**/*.pyc"
- "!.venv/**"
- "!outputs/**"
- "!models/**"
- "!tests/**"
# The backend reads this file at import time (services/features/ic_lora_recipes.py).
# Name each file. Do not use a glob.
- from: shared
to: shared
filter:
- ic-lora-input-cap.json
- from: python-deps-hash.txt
to: python-deps-hash.txt
win:
target:
- target: nsis
arch:
- x64
icon: resources/icon.ico
artifactName: ${productName}-Setup.${ext}
azureSignOptions:
publisherName: Lightricks US Inc
endpoint: https://eus.codesigning.azure.net/
certificateProfileName: ltx-desktop-trusted
codeSigningAccountName: ltx-trusted
excludeEnvironmentCredential: true
nsis:
oneClick: false
allowToChangeInstallationDirectory: true
include: resources/installer.nsh
installerIcon: resources/icon.ico
uninstallerIcon: resources/icon.ico
installerHeaderIcon: resources/icon.ico
createDesktopShortcut: true
createStartMenuShortcut: true
shortcutName: LTX Desktop
mac:
hardenedRuntime: true
entitlements: resources/entitlements.mac.plist
entitlementsInherit: resources/entitlements.mac.plist
notarize: true
signIgnore:
# Skip non-binary files in the bundled Python environment during codesign.
# Without this, @electron/osx-sign walks all ~25k files to find ~360 Mach-O
# binaries, hitting the macOS 10240 open-files-per-process limit.
- "/python/.*\\.(py|pyc|pyi|pxd|pyx|h|hpp|cpp|c|cuh|cu|tcl|txt|json|yaml|yml|toml|cfg|md|rst|html|css|enc|msg|cmake|gif|png|jpg|svg|xml|jinja|typed|al)$"
- "/python/.*\\.dist-info/"
# The prebuilt mpsgraph_zc cache's relocatable object is Mach-O but never loaded
# (only its .so is dlopen'd); skip signing it — codesign rejects relocatable .o.
- "/python/mps-ext-prebuilt/.*\\.o$"
extraResources:
# python-embed includes the prebuilt mps-sdpa mpsgraph_zc extension under
# mps-ext-prebuilt/ (prepare-python.sh Step 6.5), so it's bundled to
# resources/python/mps-ext-prebuilt — where LTX_MPS_EXT_PREBUILT_DIR points.
- from: python-embed
to: python
filter:
- "**/*"
- "!__pycache__/**"
- "!*.pyc"
target:
- target: dmg
arch:
- arm64
- target: zip
arch:
- arm64
icon: resources/icon.icns
category: public.app-category.video
artifactName: ${productName}-${arch}.${ext}
extendInfo:
NSMicrophoneUsageDescription: LTX Desktop needs the microphone to record audio for Audio to Video.
dmg:
contents:
- x: 130
y: 220
- x: 410
y: 220
type: link
path: /Applications
linux:
target:
- AppImage
- deb
icon: resources/icons
category: Video
artifactName: ${productName}-${arch}.${ext}
deb:
depends:
- libgtk-3-0
- libnotify4
- libnss3
- libxss1
- libxtst6
- xdg-utils
- libatspi2.0-0
- libuuid1
- libsecret-1-0
publish:
provider: github
owner: Lightricks
repo: ltx-desktop