-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
98 lines (78 loc) · 2.86 KB
/
Copy pathMakefile
File metadata and controls
98 lines (78 loc) · 2.86 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
# ----------------------------------------------------------------------------
# Testing and Quality
# ----------------------------------------------------------------------------
# Run all tests
tests_all:
npm run test:all
# Format and check code quality
format_and_lint:
npm run lint:format && npm run lint && npm run type-check
# ----------------------------------------------------------------------------
# Build and Package Management
# ----------------------------------------------------------------------------
# Clean build artifacts
clean:
if [ -d "dist-electron" ]; then rm -rf dist-electron; fi
if [ -d "coverage" ]; then rm -rf coverage; fi
if [ -d "build-electron" ]; then rm -rf build-electron; fi
$(MAKE) ensure_fsevents_dir
# Ensure Playwright fsevents directory exists
ensure_fsevents_dir:
if [ ! -d "./node_modules/playwright/node_modules/fsevents" ]; then \
mkdir -p "./node_modules/playwright/node_modules/fsevents"; \
fi
# Build Electron application
electron_build:
npm run electron:build
# Clean, build and package Electron application
clean_electron_build:
$(MAKE) clean
npm run build-only
$(MAKE) electron_build
$(MAKE) archive_electron_package
$(MAKE) copy_fingerprints_to_electron_package
# Copy Playwright with fingerprints to the built application
copy_fingerprints_to_electron_package:
VERSION=$$(jq -r .version package.json) && \
if [ -d ".data_playwright_with_fingerprints" ]; then \
cp -r ".data_playwright_with_fingerprints" \
"./dist-electron/$$VERSION/win-unpacked/.data_playwright_with_fingerprints"; \
else \
echo "Warning: .data_playwright_with_fingerprints directory not found"; \
exit 1; \
fi
# Create distribution package only
archive_electron_package:
VERSION=$$(jq -r .version package.json) && \
powershell Compress-Archive -Force -Path "./dist-electron/$$VERSION/win-unpacked/*" \
-DestinationPath "./dist-electron/$$VERSION/VuetifyElectronStarter-$$VERSION-x64.zip"
# ----------------------------------------------------------------------------
# Git Branch Management
# ----------------------------------------------------------------------------
# Switch to develop branch
switch_develop:
git fetch && git checkout develop && git pull
# Switch to master branch
switch_master:
git fetch && git checkout master && git pull
# ----------------------------------------------------------------------------
# Version and Release Management
# ----------------------------------------------------------------------------
# Create conventional commit
commit:
npm run commit
# Dry run version bump
version_dry:
npm run version:dry
# Auto version bump based on commits
version_auto:
npm run version:auto
# Bump patch version (0.0.X)
version_patch:
npm run version:patch
# Bump minor version (0.X.0)
version_minor:
npm run version:minor
# Bump major version (X.0.0)
version_major:
npm run version:major