@capgo/cli 4.10.53 → 4.11.0
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/check_posix_paths.yml +49 -28
- package/CHANGELOG.md +165 -0
- package/bun.lockb +0 -0
- package/dist/index.js +12709 -6680
- package/package.json +2 -1
- package/src/bundle/upload.ts +2 -2
- package/src/bundle/zip.ts +92 -86
- package/src/utils.ts +42 -8
- package/test/test_zip_swift/Package.resolved +24 -0
- package/test/test_zip_swift/Package.swift +29 -0
- package/test/test_zip_swift/Sources/main.swift +80 -0
|
@@ -112,15 +112,8 @@ jobs:
|
|
|
112
112
|
- name: Verify POSIX paths for Linux build
|
|
113
113
|
run: |
|
|
114
114
|
unzip build-linux.zip -d extracted-linux
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if [[ "$file" =~ "\\" ]]; then
|
|
118
|
-
echo "Non-POSIX path detected: $file"
|
|
119
|
-
error_found=true
|
|
120
|
-
fi
|
|
121
|
-
done
|
|
122
|
-
if [ "$error_found" = true ]; then
|
|
123
|
-
echo "Non-POSIX paths detected in the zip file (Linux)"
|
|
115
|
+
if find extracted-linux -type f | grep -qE '\\\\'; then
|
|
116
|
+
echo "Non-POSIX paths detected in build-linux.zip."
|
|
124
117
|
exit 1
|
|
125
118
|
else
|
|
126
119
|
echo "All paths are POSIX compliant in build-linux.zip."
|
|
@@ -170,32 +163,18 @@ jobs:
|
|
|
170
163
|
- name: Verify POSIX paths for Windows 2019 build
|
|
171
164
|
run: |
|
|
172
165
|
unzip build-windows-2019.zip -d extracted-2019
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if [[ "$file" =~ "\\" ]]; then
|
|
176
|
-
echo "Non-POSIX path detected: $file"
|
|
177
|
-
error_found=true
|
|
178
|
-
fi
|
|
179
|
-
done
|
|
180
|
-
if [ "$error_found" = true ]; then
|
|
181
|
-
echo "Non-POSIX paths detected in the zip file (Windows 2019)"
|
|
166
|
+
if find extracted-2019 -type f | grep -qE '\\\\'; then
|
|
167
|
+
echo "Non-POSIX paths detected in build-windows-2019.zip."
|
|
182
168
|
exit 1
|
|
183
169
|
else
|
|
184
170
|
echo "All paths are POSIX compliant in build-windows-2019.zip."
|
|
185
171
|
fi
|
|
186
|
-
|
|
172
|
+
|
|
187
173
|
- name: Verify POSIX paths for Windows 2022 build
|
|
188
174
|
run: |
|
|
189
175
|
unzip build-windows-2022.zip -d extracted-2022
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
if [[ "$file" =~ "\\" ]]; then
|
|
193
|
-
echo "Non-POSIX path detected: $file"
|
|
194
|
-
error_found=true
|
|
195
|
-
fi
|
|
196
|
-
done
|
|
197
|
-
if [ "$error_found" = true ]; then
|
|
198
|
-
echo "Non-POSIX paths detected in the zip file (Windows 2022)"
|
|
176
|
+
if find extracted-2022 -type f | grep -qE '\\\\'; then
|
|
177
|
+
echo "Non-POSIX paths detected in build-windows-2022.zip."
|
|
199
178
|
exit 1
|
|
200
179
|
else
|
|
201
180
|
echo "All paths are POSIX compliant in build-windows-2022.zip."
|
|
@@ -206,3 +185,45 @@ jobs:
|
|
|
206
185
|
|
|
207
186
|
- name: Verify ZIP file integrity for Windows 2022 build with Java
|
|
208
187
|
run: java -cp ./test VerifyZip build-windows-2022.zip
|
|
188
|
+
|
|
189
|
+
check-posix-paths-macos:
|
|
190
|
+
runs-on: macos-latest
|
|
191
|
+
needs: [create-valid-zip-linux, check-posix-paths-windows]
|
|
192
|
+
|
|
193
|
+
steps:
|
|
194
|
+
- name: Checkout repository
|
|
195
|
+
uses: actions/checkout@v4
|
|
196
|
+
|
|
197
|
+
- name: Download build-linux.zip artifact
|
|
198
|
+
uses: actions/download-artifact@v4
|
|
199
|
+
with:
|
|
200
|
+
name: build-zip-linux
|
|
201
|
+
|
|
202
|
+
- name: Download build-windows-2019.zip artifact
|
|
203
|
+
uses: actions/download-artifact@v4
|
|
204
|
+
with:
|
|
205
|
+
name: build-zip-windows-2019
|
|
206
|
+
|
|
207
|
+
- name: Download build-windows-2022.zip artifact
|
|
208
|
+
uses: actions/download-artifact@v4
|
|
209
|
+
with:
|
|
210
|
+
name: build-zip-windows-2022
|
|
211
|
+
|
|
212
|
+
- name: List the files
|
|
213
|
+
run: ls -lh
|
|
214
|
+
|
|
215
|
+
- name: Check file size of Linux build
|
|
216
|
+
run: ls -lh build-linux.zip
|
|
217
|
+
|
|
218
|
+
- name: Setup Swift
|
|
219
|
+
uses: swift-actions/setup-swift@v2
|
|
220
|
+
|
|
221
|
+
- name: Get swift version
|
|
222
|
+
run: swift --version # Swift 5.10
|
|
223
|
+
|
|
224
|
+
- name: Compile test executable
|
|
225
|
+
run: swift build -c release
|
|
226
|
+
working-directory: ./test/test_zip_swift/
|
|
227
|
+
|
|
228
|
+
- name: Run the swift test
|
|
229
|
+
run: ./test/test_zip_swift/.build/release/MyCLI --zip-files build-linux.zip build-windows-2019.zip build-windows-2022.zip
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,171 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [4.11.0](https://github.com/Cap-go/CLI/compare/v4.10.77...v4.11.0) (2024-06-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* deploy for windows ([47220bc](https://github.com/Cap-go/CLI/commit/47220bc961c34b4ac2318dadf13eb9261c00e561))
|
|
11
|
+
|
|
12
|
+
### [4.10.77](https://github.com/Cap-go/CLI/compare/v4.10.76...v4.10.77) (2024-06-23)
|
|
13
|
+
|
|
14
|
+
### [4.10.76](https://github.com/Cap-go/CLI/compare/v4.10.75...v4.10.76) (2024-06-22)
|
|
15
|
+
|
|
16
|
+
### [4.10.75](https://github.com/Cap-go/CLI/compare/v4.10.74...v4.10.75) (2024-06-21)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* delete ios setup for now as we cannot manage to make it work easy ([cadec4e](https://github.com/Cap-go/CLI/commit/cadec4ef73d19f85c511239d0155687256d7321e))
|
|
22
|
+
|
|
23
|
+
### [4.10.74](https://github.com/Cap-go/CLI/compare/v4.10.73...v4.10.74) (2024-06-21)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* podfile ([8912d4c](https://github.com/Cap-go/CLI/commit/8912d4c6b35d2a5787330fb14cd9fa137ad1d2b9))
|
|
29
|
+
|
|
30
|
+
### [4.10.73](https://github.com/Cap-go/CLI/compare/v4.10.72...v4.10.73) (2024-06-21)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* test with pod ([1e5a5f9](https://github.com/Cap-go/CLI/commit/1e5a5f92df27e79526271c7a4acda61111d8a300))
|
|
36
|
+
|
|
37
|
+
### [4.10.72](https://github.com/Cap-go/CLI/compare/v4.10.71...v4.10.72) (2024-06-21)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* disable checks ([b6e5b27](https://github.com/Cap-go/CLI/commit/b6e5b270fbbc0148c7597bdcc44e8482f47c5515))
|
|
43
|
+
|
|
44
|
+
### [4.10.71](https://github.com/Cap-go/CLI/compare/v4.10.70...v4.10.71) (2024-06-21)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* test mac ([9603e6d](https://github.com/Cap-go/CLI/commit/9603e6dd3250b2def347b9fc8ca5c8cf81c988ee))
|
|
50
|
+
|
|
51
|
+
### [4.10.70](https://github.com/Cap-go/CLI/compare/v4.10.69...v4.10.70) (2024-06-21)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* install ([28fff1f](https://github.com/Cap-go/CLI/commit/28fff1f4f119d09f0e192c1708bea3a9ce62fd80))
|
|
57
|
+
|
|
58
|
+
### [4.10.69](https://github.com/Cap-go/CLI/compare/v4.10.68...v4.10.69) (2024-06-21)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* test other solution ([1f068e1](https://github.com/Cap-go/CLI/commit/1f068e1d4c8c81bfc046686c2e4e28f1fff4ee7d))
|
|
64
|
+
|
|
65
|
+
### [4.10.68](https://github.com/Cap-go/CLI/compare/v4.10.67...v4.10.68) (2024-06-21)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Bug Fixes
|
|
69
|
+
|
|
70
|
+
* remove dup ([a5aa77c](https://github.com/Cap-go/CLI/commit/a5aa77c96b1ceae3e36d760446f31116e8cb55ee))
|
|
71
|
+
|
|
72
|
+
### [4.10.67](https://github.com/Cap-go/CLI/compare/v4.10.66...v4.10.67) (2024-06-21)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Bug Fixes
|
|
76
|
+
|
|
77
|
+
* test again ([52af439](https://github.com/Cap-go/CLI/commit/52af439de9a4f4eb99527ac621bedc1a47d72fc0))
|
|
78
|
+
|
|
79
|
+
### [4.10.66](https://github.com/Cap-go/CLI/compare/v4.10.65...v4.10.66) (2024-06-21)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Bug Fixes
|
|
83
|
+
|
|
84
|
+
* try different way to init swift and do it first step to test ([26d32ea](https://github.com/Cap-go/CLI/commit/26d32ea5d66097cde1b9b24378884a0f9561a79e))
|
|
85
|
+
|
|
86
|
+
### [4.10.65](https://github.com/Cap-go/CLI/compare/v4.10.64...v4.10.65) (2024-06-21)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Bug Fixes
|
|
90
|
+
|
|
91
|
+
* swift test ([3da5261](https://github.com/Cap-go/CLI/commit/3da5261730faa58fff04ef986ec04e9761e5138f))
|
|
92
|
+
|
|
93
|
+
### [4.10.64](https://github.com/Cap-go/CLI/compare/v4.10.63...v4.10.64) (2024-06-21)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Bug Fixes
|
|
97
|
+
|
|
98
|
+
* add test in swift as well ([9dfd7e6](https://github.com/Cap-go/CLI/commit/9dfd7e6d36699759b18799bef624d59d4e360da5))
|
|
99
|
+
|
|
100
|
+
### [4.10.63](https://github.com/Cap-go/CLI/compare/v4.10.62...v4.10.63) (2024-06-21)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Bug Fixes
|
|
104
|
+
|
|
105
|
+
* try to force posix ([5d0b446](https://github.com/Cap-go/CLI/commit/5d0b4465d0d49988c95d85b465efd88d3966077a))
|
|
106
|
+
|
|
107
|
+
### [4.10.62](https://github.com/Cap-go/CLI/compare/v4.10.61...v4.10.62) (2024-06-21)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Bug Fixes
|
|
111
|
+
|
|
112
|
+
* try other lib to zip ([99b03ee](https://github.com/Cap-go/CLI/commit/99b03eea88e6c88572aff919f6dafbd2f49680be))
|
|
113
|
+
|
|
114
|
+
### [4.10.61](https://github.com/Cap-go/CLI/compare/v4.10.60...v4.10.61) (2024-06-21)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* add console log ([9f0a7a0](https://github.com/Cap-go/CLI/commit/9f0a7a0347ef520bb8075d55374054240dba074c))
|
|
120
|
+
|
|
121
|
+
### [4.10.60](https://github.com/Cap-go/CLI/compare/v4.10.59...v4.10.60) (2024-06-21)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Bug Fixes
|
|
125
|
+
|
|
126
|
+
* path issue ([cbab5a9](https://github.com/Cap-go/CLI/commit/cbab5a9526c52cf2e51204d2e068e6493fc1f1cc))
|
|
127
|
+
|
|
128
|
+
### [4.10.59](https://github.com/Cap-go/CLI/compare/v4.10.58...v4.10.59) (2024-06-21)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
* try new fix ([4d65f3c](https://github.com/Cap-go/CLI/commit/4d65f3cf7b8d617156668a596b18ef06f08a4659))
|
|
134
|
+
|
|
135
|
+
### [4.10.58](https://github.com/Cap-go/CLI/compare/v4.10.57...v4.10.58) (2024-06-21)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* zipFile ([8a5f0b6](https://github.com/Cap-go/CLI/commit/8a5f0b62392bfd2be77c3a45bd3d5e83a9d58ace))
|
|
141
|
+
|
|
142
|
+
### [4.10.57](https://github.com/Cap-go/CLI/compare/v4.10.56...v4.10.57) (2024-06-21)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Bug Fixes
|
|
146
|
+
|
|
147
|
+
* use better path system ([330a130](https://github.com/Cap-go/CLI/commit/330a130ba3f16be88a40ebf298893b2d3cd518ba))
|
|
148
|
+
|
|
149
|
+
### [4.10.56](https://github.com/Cap-go/CLI/compare/v4.10.55...v4.10.56) (2024-06-21)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Bug Fixes
|
|
153
|
+
|
|
154
|
+
* test in shell ([1026921](https://github.com/Cap-go/CLI/commit/1026921a44259295bfc5157ffee08eaaabcee1fa))
|
|
155
|
+
|
|
156
|
+
### [4.10.55](https://github.com/Cap-go/CLI/compare/v4.10.54...v4.10.55) (2024-06-21)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* try to force correct path ([c639d9e](https://github.com/Cap-go/CLI/commit/c639d9ef500640de37f5144fbae1c9b4d057ff83))
|
|
162
|
+
|
|
163
|
+
### [4.10.54](https://github.com/Cap-go/CLI/compare/v4.10.53...v4.10.54) (2024-06-21)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
* test the new path system ([73551e9](https://github.com/Cap-go/CLI/commit/73551e9b57976aecf1fd1f0eb8001f9e8fe9fe80))
|
|
169
|
+
|
|
5
170
|
### [4.10.53](https://github.com/Cap-go/CLI/compare/v4.10.52...v4.10.53) (2024-06-21)
|
|
6
171
|
|
|
7
172
|
|
package/bun.lockb
CHANGED
|
Binary file
|