web-ext-native-app-packer 1.0.1 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93ba07876666330a898fbd9b80f1f67ca1dfec8f
4
- data.tar.gz: 93177af0f0527dbf7916474f1a561dc05e98aa7c
3
+ metadata.gz: 420dc642856bcc45f4fa5dcbb7d8d7878da97127
4
+ data.tar.gz: 14e5847e3371bdb34abda5d91894eb20ba513f09
5
5
  SHA512:
6
- metadata.gz: c6dfb2fe605a8583cc0206abb5230e65ad89f481d8c67047e3b416d71b591d45c4c3c3e66865d1ab28cd662ed50ecaa220bfa8a7dc39388e44161f32741aa10e
7
- data.tar.gz: 6ee9e109f203edf89d57984309ab5f8204840fc833dc864f058bc6335b778e722e3ec312d6514c5b1271a6d230bc75c837bcdc94d9ce2863318efd99c0fb9a9a
6
+ metadata.gz: c9ec14511db128cd5d5169b7ab54f4f169ae92a29c670fdac9661dccdd6e81825b8da4bb65b4e61f903eb863e328425fa6ab82db957d516b0866a28ab63168de
7
+ data.tar.gz: 51dda20a719dad4a5f71e9db5eeb9002c4dfa1ab61fb9cee583453b2f9055c4dec406bb74c3f8d8f42628ddd66a108ad2d5ea5c533f6947ae0cea33c367f833f
@@ -17,7 +17,7 @@ mkdir -p "$TARGET_DIR"
17
17
  cp "$DIR/manifest.json" "$TARGET_DIR/${APP_NAME}.json"
18
18
 
19
19
  # Update host path in the manifest.
20
- APP_PATH=$DIR/app.rb
20
+ APP_PATH=$DIR/<%= @v.app_path %>
21
21
  ESCAPED_APP_PATH=${APP_PATH////\\/}
22
22
  sed -i -e "s/APP_PATH/$ESCAPED_APP_PATH/" "$TARGET_DIR/$APP_NAME.json"
23
23
 
@@ -120,6 +120,7 @@ module WebExtNativeAppPacker
120
120
  target_path = get_target_path(platform, browser_name)
121
121
  v = OpenStruct.new({
122
122
  app_name: input.app_name,
123
+ app_path: input.app_path,
123
124
  target_path_system: target_path[:system],
124
125
  target_path_user: target_path[:user]
125
126
  })
@@ -129,6 +130,9 @@ module WebExtNativeAppPacker
129
130
  filename
130
131
  )
131
132
  Helper.render(v, erb_path, out_path)
133
+ if out_path.end_with?('.sh')
134
+ `chmod a+x #{out_path}`
135
+ end
132
136
  end
133
137
  end
134
138
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-ext-native-app-packer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mika