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 +4 -4
- data/lib/template/install-unix-like.sh.erb +1 -1
- data/lib/web-ext-native-app-packer.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 420dc642856bcc45f4fa5dcbb7d8d7878da97127
|
4
|
+
data.tar.gz: 14e5847e3371bdb34abda5d91894eb20ba513f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|