File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1717
1818 steps :
1919 - name : Check out git repository
20+ # ---> ВАЖНОЕ ИЗМЕНЕНИЕ: Указываем fetch-depth: 0 <---
21+ # Это нужно, чтобы electron-builder мог правильно работать с тегами Git
2022 uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ # ... (все шаги до "Build and release" остаются без изменений) ...
2127
22- # --- [БЛОК 1] Сборка исполняемого файла аналитики ---
2328 - name : Set up Python
2429 uses : actions/setup-python@v5
2530 with :
3843 - name : Build analytics executable
3944 run : python -m PyInstaller --onefile python_src/analytics.py --distpath extra/analytics --name analytics
4045
41- # --- [БЛОК 2] Сборка Electron-приложения ---
4246 - name : Setup Node.js
4347 uses : actions/setup-node@v4
4448 with :
6064 if [ "${{ runner.os }}" == "Linux" ]; then
6165 FUSE_PATH=$(readlink -f /usr/lib/x86_64-linux-gnu/libfuse.so.2)
6266 echo "FUSE library found at: $FUSE_PATH"
63- # Передаем extraFiles как JSON-строку в одинарных кавычках, чтобы избежать проблем с парсингом
6467 EXTRA_FILES_CONFIG='[{"from": "'"$FUSE_PATH"'", "to": "lib/libfuse.so.2"}]'
68+ # Добавляем --winPortable, чтобы собрать и portable-версию для Windows, если нужно
6569 npm run dist -- --publish always --config.linux.extraFiles="$EXTRA_FILES_CONFIG"
6670 else
67- # Для Windows просто запускаем сборку как обычно
6871 npm run dist -- --publish always
6972 fi
Original file line number Diff line number Diff line change 11{
22 "name" : " openipc-dashboard" ,
3- "version" : " 2.7.6.2 " ,
3+ "version" : " 2.7.6.3 " ,
44 "description" : " App for managing OpenIPC cameras" ,
55 "main" : " main.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments