@capgo/cli 4.10.34 → 4.10.36
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.
|
@@ -48,16 +48,13 @@ jobs:
|
|
|
48
48
|
needs: check-posix-paths-windows
|
|
49
49
|
|
|
50
50
|
steps:
|
|
51
|
-
- name:
|
|
52
|
-
uses: actions/checkout@v3
|
|
53
|
-
|
|
54
|
-
- name: Download build.zip artifacts
|
|
51
|
+
- name: Download build-windows-2019.zip artifact
|
|
55
52
|
uses: actions/download-artifact@v2
|
|
56
53
|
with:
|
|
57
54
|
name: build-zip-windows-2019
|
|
58
55
|
path: build-windows-2019.zip
|
|
59
56
|
|
|
60
|
-
- name: Download build.zip
|
|
57
|
+
- name: Download build-windows-2022.zip artifact
|
|
61
58
|
uses: actions/download-artifact@v2
|
|
62
59
|
with:
|
|
63
60
|
name: build-zip-windows-2022
|
|
@@ -69,9 +66,19 @@ jobs:
|
|
|
69
66
|
ls -lh /home/runner/work/CLI/CLI/build-windows-2019.zip
|
|
70
67
|
ls -lh /home/runner/work/CLI/CLI/build-windows-2022.zip
|
|
71
68
|
|
|
69
|
+
- name: Verify ZIP file integrity for Windows 2019 build
|
|
70
|
+
run: |
|
|
71
|
+
echo "Verifying ZIP file integrity for Windows 2019 build..."
|
|
72
|
+
zipinfo /home/runner/work/CLI/CLI/build-windows-2019.zip || (echo "ZIP file is corrupted: build-windows-2019.zip" && exit 1)
|
|
73
|
+
|
|
74
|
+
- name: Verify ZIP file integrity for Windows 2022 build
|
|
75
|
+
run: |
|
|
76
|
+
echo "Verifying ZIP file integrity for Windows 2022 build..."
|
|
77
|
+
zipinfo /home/runner/work/CLI/CLI/build-windows-2022.zip || (echo "ZIP file is corrupted: build-windows-2022.zip" && exit 1)
|
|
78
|
+
|
|
72
79
|
- name: Verify POSIX paths for Windows 2019 build
|
|
73
80
|
run: |
|
|
74
|
-
unzip /home/runner/work/CLI/CLI/build-windows-2019 -d extracted-2019
|
|
81
|
+
unzip /home/runner/work/CLI/CLI/build-windows-2019.zip -d extracted-2019
|
|
75
82
|
error_found=false
|
|
76
83
|
find extracted-2019 -type f | while read -r file; do
|
|
77
84
|
if [[ "$file" =~ "\\" ]]; then
|
|
@@ -88,7 +95,7 @@ jobs:
|
|
|
88
95
|
|
|
89
96
|
- name: Verify POSIX paths for Windows 2022 build
|
|
90
97
|
run: |
|
|
91
|
-
unzip /home/runner/work/CLI/CLI/build-windows-2022 -d extracted-2022
|
|
98
|
+
unzip /home/runner/work/CLI/CLI/build-windows-2022.zip -d extracted-2022
|
|
92
99
|
error_found=false
|
|
93
100
|
find extracted-2022 -type f | while read -r file; do
|
|
94
101
|
if [[ "$file" =~ "\\" ]]; then
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.10.36](https://github.com/Cap-go/CLI/compare/v4.10.35...v4.10.36) (2024-06-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add other file for better test ([9757a93](https://github.com/Cap-go/CLI/commit/9757a9375cc754556b4384e30cb95faee9ab23e1))
|
|
11
|
+
* get info with zipinfo ([5d7ecdc](https://github.com/Cap-go/CLI/commit/5d7ecdcd94bb7489c01e53ce9927b05185165f37))
|
|
12
|
+
|
|
13
|
+
### [4.10.35](https://github.com/Cap-go/CLI/compare/v4.10.34...v4.10.35) (2024-06-21)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* test file before unzip ([9ec2ac3](https://github.com/Cap-go/CLI/commit/9ec2ac31b53cd3c5ccd76f3cb3d72cdfada63a84))
|
|
19
|
+
|
|
5
20
|
### [4.10.34](https://github.com/Cap-go/CLI/compare/v4.10.33...v4.10.34) (2024-06-21)
|
|
6
21
|
|
|
7
22
|
|
package/dist/index.js
CHANGED
|
@@ -112906,7 +112906,7 @@ var {
|
|
|
112906
112906
|
// package.json
|
|
112907
112907
|
var package_default = {
|
|
112908
112908
|
name: "@capgo/cli",
|
|
112909
|
-
version: "4.10.
|
|
112909
|
+
version: "4.10.36",
|
|
112910
112910
|
description: "A CLI to upload to capgo servers",
|
|
112911
112911
|
author: "github.com/riderx",
|
|
112912
112912
|
license: "Apache 2.0",
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const AdmZip = require('adm-zip');
|
|
2
|
+
|
|
3
|
+
const zip = new AdmZip('build.zip');
|
|
4
|
+
const zipEntries = zip.getEntries(); // an array of ZipEntry records
|
|
5
|
+
|
|
6
|
+
let errorFound = false;
|
|
7
|
+
|
|
8
|
+
zipEntries.forEach((zipEntry) => {
|
|
9
|
+
const entryName = zipEntry.entryName;
|
|
10
|
+
if (entryName.includes('\\')) {
|
|
11
|
+
console.error(`Non-POSIX path detected: ${entryName}`);
|
|
12
|
+
errorFound = true;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
if (errorFound) {
|
|
17
|
+
console.error('Non-POSIX paths detected in the zip file');
|
|
18
|
+
process.exit(1);
|
|
19
|
+
} else {
|
|
20
|
+
console.log('All paths are POSIX compliant.');
|
|
21
|
+
}
|