@capacitor/cli 3.4.0 → 3.4.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.4.1](https://github.com/ionic-team/capacitor/compare/3.4.0...3.4.1) (2022-02-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** Better error on gradlew permission problems ([#5405](https://github.com/ionic-team/capacitor/issues/5405)) ([9420f08](https://github.com/ionic-team/capacitor/commit/9420f08dedad78cfaa5500cccf8bdbf1a9140684))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.4.0](https://github.com/ionic-team/capacitor/compare/3.3.4...3.4.0) (2022-01-19)
7
18
 
8
19
  **Note:** Version bump only for package @capacitor/cli
Binary file
Binary file
@@ -15,9 +15,19 @@ async function runAndroid(config, { target: selectedTarget }) {
15
15
  const arg = `assemble${((_a = config.android) === null || _a === void 0 ? void 0 : _a.flavor) || ''}Debug`;
16
16
  const gradleArgs = [arg];
17
17
  debug('Invoking ./gradlew with args: %O', gradleArgs);
18
- await common_1.runTask('Running Gradle build', async () => subprocess_1.runCommand('./gradlew', gradleArgs, {
19
- cwd: config.android.platformDirAbs,
20
- }));
18
+ try {
19
+ await common_1.runTask('Running Gradle build', async () => subprocess_1.runCommand('./gradlew', gradleArgs, {
20
+ cwd: config.android.platformDirAbs,
21
+ }));
22
+ }
23
+ catch (e) {
24
+ if (e.includes('EACCES')) {
25
+ throw `gradlew file does not have executable permissions. This can happen if the Android platform was added on a Windows machine. Please run ${colors_1.default.strong(`chmod +x ./${config.android.platformDir}/gradlew`)} and try again.`;
26
+ }
27
+ else {
28
+ throw e;
29
+ }
30
+ }
21
31
  const apkPath = path_1.resolve(config.android.buildOutputDirAbs, config.android.apkName);
22
32
  const nativeRunArgs = ['android', '--app', apkPath, '--target', target.id];
23
33
  debug('Invoking native-run with args: %O', nativeRunArgs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "4e84c04251167ea8212969fead84b6a1d694b561"
88
+ "gitHead": "bc7b49ff2ad242fecff7bcb3900c627ff6880f7b"
89
89
  }