File tree 3 files changed +7
-25
lines changed
3 files changed +7
-25
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Your language is not listed? Submit an issue to let me know.
30
30
directory to get upstream. Check out a tag or commit as appropriate.
31
31
1 . In Nano Core 2 repository:
32
32
1 . Navigate to ` /term ` directory and run ` npm install ` .
33
- 1 . Update ` /config.json ` as appropriate.
33
+ 1 . Update ` /config.nano.js ` as appropriate.
34
34
1 . Run ` node ./term ` to open Nano Core 2 Terminal.
35
35
36
36
Note: The private repository ` Prototype ` is required for publishing.
Original file line number Diff line number Diff line change 93
93
94
94
// --------------------------------------------------------------------------------------------------------- //
95
95
96
- Source : {
97
- Linux : "/tmp2/uBlock/" ,
98
- Win : "D:/A_Temporary/uBlock/" ,
99
- } ,
100
-
101
- Target : {
102
- Linux : "/tmp2/NanoCore2DevEnv/" ,
103
- Win : "D:/A_Temporary/NanoCore2DevEnv/" ,
104
- } ,
105
-
106
- Output : {
107
- Linux : "/tmp2/NanoCore2Latest.patch" ,
108
- Win : "D:/A_Temporary/NanoCore2Latest.patch" ,
109
- } ,
96
+ Source : "./temp/uBlock/" ,
97
+ Target : "./temp/NanoCore2DevEnv/" ,
98
+ Output : "./temp/NanoCore2Latest.patch" ,
110
99
111
100
// --------------------------------------------------------------------------------------------------------- //
112
101
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ const APP_NAME = "Nano Core 2 Terminal";
38
38
39
39
const assert = require ( "assert" ) ;
40
40
const fs = require ( "fs-extra" ) ;
41
- const os = require ( "os" ) ;
42
41
const path = require ( "path" ) ;
43
42
44
43
const build = require ( "./build.js" ) ;
@@ -85,15 +84,9 @@ const config_load = async () => {
85
84
86
85
config . Patches = data . Patches . map ( ( p ) => path . resolve ( p ) ) ;
87
86
88
- if ( os . platform ( ) === "win32" ) {
89
- config . Source = data . Source . Win ;
90
- config . Target = data . Target . Win ;
91
- config . Output = data . Output . Win ;
92
- } else {
93
- config . Source = data . Source . Linux ;
94
- config . Target = data . Target . Linux ;
95
- config . Output = data . Output . Linux ;
96
- }
87
+ config . Source = path . resolve ( data . Source ) ;
88
+ config . Target = path . resolve ( data . Target ) ;
89
+ config . Output = path . resolve ( data . Output ) ;
97
90
98
91
const validate_path = ( p ) => {
99
92
assert ( typeof p === "string" ) ;
You can’t perform that action at this time.
0 commit comments