dashcam 1.0.1-beta.3 → 1.0.1-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +26 -20
- package/691cc08dc2fc02f59ae66f08 (1).mp4 +0 -0
- package/NPM_PUBLISH_FIX.md +104 -0
- package/SINGLE_FRAME_VIDEO_FIX.md +129 -0
- package/bin/dashcam-background.js +177 -0
- package/bin/dashcam.js +286 -138
- package/lib/auth.js +5 -5
- package/lib/config.js +1 -1
- package/lib/ffmpeg.js +9 -40
- package/lib/logs/index.js +67 -11
- package/lib/processManager.js +127 -81
- package/lib/recorder.js +153 -33
- package/lib/systemInfo.js +141 -0
- package/lib/tracking/FileTracker.js +8 -1
- package/lib/tracking/LogsTracker.js +21 -7
- package/lib/tracking/icons/index.js +3 -2
- package/lib/tracking/icons/linux.js +370 -0
- package/lib/uploader.js +23 -10
- package/package.json +5 -1
- package/scripts/sync-version.sh +48 -0
- package/test-short-recording.js +287 -0
- package/test-system-info.js +105 -0
- package/test_workflow.sh +110 -27
- package/.github/workflows/build.yml +0 -103
- package/.github/workflows/release.yml +0 -107
- package/sea-bundle.mjs +0 -34595
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
permissions:
|
|
7
|
-
contents: write
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
bump-version:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
# Skip if commit message contains [skip ci] or [skip release]
|
|
13
|
-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip release]') }}
|
|
14
|
-
outputs:
|
|
15
|
-
new_tag: ${{ steps.bump.outputs.new_tag }}
|
|
16
|
-
version: ${{ steps.bump.outputs.tag }}
|
|
17
|
-
steps:
|
|
18
|
-
- name: Checkout code
|
|
19
|
-
uses: actions/checkout@v4
|
|
20
|
-
with:
|
|
21
|
-
fetch-depth: 0
|
|
22
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
-
|
|
24
|
-
- name: Bump version and create tag
|
|
25
|
-
id: bump
|
|
26
|
-
uses: anothrNick/github-tag-action@1.67.0
|
|
27
|
-
env:
|
|
28
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
29
|
-
WITH_V: true
|
|
30
|
-
DEFAULT_BUMP: patch
|
|
31
|
-
INITIAL_VERSION: 1.0.0
|
|
32
|
-
RELEASE_BRANCHES: main,master
|
|
33
|
-
|
|
34
|
-
build:
|
|
35
|
-
needs: bump-version
|
|
36
|
-
uses: ./.github/workflows/build.yml
|
|
37
|
-
with:
|
|
38
|
-
upload_artifacts: true
|
|
39
|
-
|
|
40
|
-
release:
|
|
41
|
-
needs: [bump-version, build]
|
|
42
|
-
runs-on: ubuntu-latest
|
|
43
|
-
if: needs.bump-version.outputs.new_tag != ''
|
|
44
|
-
|
|
45
|
-
steps:
|
|
46
|
-
- name: Download all artifacts
|
|
47
|
-
uses: actions/download-artifact@v4
|
|
48
|
-
continue-on-error: true
|
|
49
|
-
|
|
50
|
-
- name: List downloaded artifacts
|
|
51
|
-
run: |
|
|
52
|
-
echo "Downloaded artifacts:"
|
|
53
|
-
ls -R
|
|
54
|
-
|
|
55
|
-
- name: Prepare release files
|
|
56
|
-
run: |
|
|
57
|
-
mkdir -p release
|
|
58
|
-
# macOS binaries
|
|
59
|
-
if [ -f dashcam-macos/bundle-arm64 ]; then
|
|
60
|
-
cp dashcam-macos/bundle-arm64 release/dashcam-macos-arm64
|
|
61
|
-
chmod +x release/dashcam-macos-arm64
|
|
62
|
-
fi
|
|
63
|
-
if [ -f dashcam-macos/bundle-x64 ]; then
|
|
64
|
-
cp dashcam-macos/bundle-x64 release/dashcam-macos-x64
|
|
65
|
-
chmod +x release/dashcam-macos-x64
|
|
66
|
-
fi
|
|
67
|
-
# Linux binaries
|
|
68
|
-
if [ -f dashcam-linux/bundle-arm64 ]; then
|
|
69
|
-
cp dashcam-linux/bundle-arm64 release/dashcam-linux-arm64
|
|
70
|
-
chmod +x release/dashcam-linux-arm64
|
|
71
|
-
fi
|
|
72
|
-
if [ -f dashcam-linux/bundle-x64 ]; then
|
|
73
|
-
cp dashcam-linux/bundle-x64 release/dashcam-linux-x64
|
|
74
|
-
chmod +x release/dashcam-linux-x64
|
|
75
|
-
fi
|
|
76
|
-
# Windows binaries
|
|
77
|
-
if [ -f dashcam-windows/bundle-x64.exe ]; then
|
|
78
|
-
cp dashcam-windows/bundle-x64.exe release/dashcam-windows-x64.exe
|
|
79
|
-
fi
|
|
80
|
-
if [ -f dashcam-windows/bundle-arm64.exe ]; then
|
|
81
|
-
cp dashcam-windows/bundle-arm64.exe release/dashcam-windows-arm64.exe
|
|
82
|
-
fi
|
|
83
|
-
ls -la release/
|
|
84
|
-
|
|
85
|
-
- name: Create Release
|
|
86
|
-
uses: softprops/action-gh-release@v1
|
|
87
|
-
with:
|
|
88
|
-
tag_name: ${{ needs.bump-version.outputs.new_tag }}
|
|
89
|
-
name: Release ${{ needs.bump-version.outputs.new_tag }}
|
|
90
|
-
body: |
|
|
91
|
-
## Dashcam CLI Release ${{ needs.bump-version.outputs.new_tag }}
|
|
92
|
-
|
|
93
|
-
Automated release with binaries for macOS (x64, ARM64), Linux (x64, ARM64), and Windows (x64, ARM64).
|
|
94
|
-
|
|
95
|
-
### Download Instructions
|
|
96
|
-
- **macOS Intel**: `dashcam-macos-x64`
|
|
97
|
-
- **macOS Apple Silicon**: `dashcam-macos-arm64`
|
|
98
|
-
- **Linux x64**: `dashcam-linux-x64`
|
|
99
|
-
- **Linux ARM64**: `dashcam-linux-arm64`
|
|
100
|
-
- **Windows x64**: `dashcam-windows-x64.exe`
|
|
101
|
-
- **Windows ARM64**: `dashcam-windows-arm64.exe`
|
|
102
|
-
files: release/*
|
|
103
|
-
draft: false
|
|
104
|
-
prerelease: false
|
|
105
|
-
fail_on_unmatched_files: false
|
|
106
|
-
env:
|
|
107
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|