esoftplay 0.0.135-z → 0.0.136
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/bin/build.js +4 -0
- package/bin/cli.js +8 -45
- package/package.json +1 -1
package/bin/build.js
CHANGED
package/bin/cli.js
CHANGED
|
@@ -270,23 +270,6 @@ function consoleFunc(msg, success) {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
|
|
274
|
-
function jsEng(file, isHermes) {
|
|
275
|
-
if (fs.existsSync(file)) {
|
|
276
|
-
var txt = fs.readFileSync(file, 'utf8');
|
|
277
|
-
let isJSON = txt.startsWith('{') || txt.startsWith('[')
|
|
278
|
-
if (!isJSON) {
|
|
279
|
-
consoleError('app.json tidak valid')
|
|
280
|
-
return
|
|
281
|
-
}
|
|
282
|
-
let app = JSON.parse(txt)
|
|
283
|
-
app.expo.jsEngine = isHermes ? "hermes" : "hermes"
|
|
284
|
-
fs.writeFileSync(file, JSON.stringify(app, undefined, 2))
|
|
285
|
-
} else {
|
|
286
|
-
consoleError(file)
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
273
|
function configUpdate(state) {
|
|
291
274
|
let _path;
|
|
292
275
|
let _slug
|
|
@@ -886,10 +869,14 @@ function build() {
|
|
|
886
869
|
pre: () => {
|
|
887
870
|
configAvailable(true)
|
|
888
871
|
devClientPre(appjson)
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
name: "2. IOS (Development) - Non Simulator",
|
|
876
|
+
cmd: "eas build --platform ios --profile development_build" + local,
|
|
877
|
+
pre: () => {
|
|
878
|
+
configAvailable(true)
|
|
879
|
+
devClientPre(appjson)
|
|
893
880
|
}
|
|
894
881
|
},
|
|
895
882
|
{
|
|
@@ -898,10 +885,6 @@ function build() {
|
|
|
898
885
|
pre: () => {
|
|
899
886
|
configAvailable(true)
|
|
900
887
|
devClientPos(appjson)
|
|
901
|
-
jsEng(appjson, true)
|
|
902
|
-
jsEng(appdebug, true)
|
|
903
|
-
jsEng(applive, true)
|
|
904
|
-
consoleSucces("Hermes diaktifkan")
|
|
905
888
|
}
|
|
906
889
|
},
|
|
907
890
|
{
|
|
@@ -910,10 +893,6 @@ function build() {
|
|
|
910
893
|
pre: () => {
|
|
911
894
|
configAvailable(true)
|
|
912
895
|
devClientPos(appjson)
|
|
913
|
-
jsEng(appjson, true)
|
|
914
|
-
jsEng(appdebug, true)
|
|
915
|
-
jsEng(applive, true)
|
|
916
|
-
consoleSucces("Hermes diaktifkan")
|
|
917
896
|
}
|
|
918
897
|
},
|
|
919
898
|
{
|
|
@@ -922,10 +901,6 @@ function build() {
|
|
|
922
901
|
pre: () => {
|
|
923
902
|
configAvailable(true)
|
|
924
903
|
devClientPos(appjson)
|
|
925
|
-
jsEng(appjson, true)
|
|
926
|
-
jsEng(appdebug, true)
|
|
927
|
-
jsEng(applive, true)
|
|
928
|
-
consoleSucces("Hermes diaktifkan")
|
|
929
904
|
}
|
|
930
905
|
},
|
|
931
906
|
{
|
|
@@ -934,10 +909,6 @@ function build() {
|
|
|
934
909
|
pre: () => {
|
|
935
910
|
configAvailable(true)
|
|
936
911
|
devClientPre(appjson)
|
|
937
|
-
jsEng(appjson, false)
|
|
938
|
-
jsEng(appdebug, false)
|
|
939
|
-
jsEng(applive, false)
|
|
940
|
-
consoleSucces("Hermes dinonaktifkan")
|
|
941
912
|
}
|
|
942
913
|
},
|
|
943
914
|
{
|
|
@@ -946,10 +917,6 @@ function build() {
|
|
|
946
917
|
pre: () => {
|
|
947
918
|
configAvailable(true)
|
|
948
919
|
devClientPos(appjson)
|
|
949
|
-
jsEng(appjson, true)
|
|
950
|
-
jsEng(appdebug, true)
|
|
951
|
-
jsEng(applive, true)
|
|
952
|
-
consoleSucces("Hermes diaktifkan")
|
|
953
920
|
}
|
|
954
921
|
},
|
|
955
922
|
{
|
|
@@ -958,10 +925,6 @@ function build() {
|
|
|
958
925
|
pre: () => {
|
|
959
926
|
configAvailable(true)
|
|
960
927
|
devClientPos(appjson)
|
|
961
|
-
jsEng(appjson, true)
|
|
962
|
-
jsEng(appdebug, true)
|
|
963
|
-
jsEng(applive, true)
|
|
964
|
-
consoleSucces("Hermes diaktifkan")
|
|
965
928
|
}
|
|
966
929
|
}
|
|
967
930
|
]
|