Browse Source

chore: replace atom path with shell in scripts

Samuel Attard 5 years ago
parent
commit
8c4496a9c9
2 changed files with 3 additions and 2 deletions
  1. 1 1
      script/bump-version.js
  2. 2 1
      script/lib/util.py

+ 1 - 1
script/bump-version.js

@@ -126,7 +126,7 @@ async function commitVersionBump (version) {
 
 // updates atom.rc file with new semver values
 async function updateWinRC (components) {
-  const filePath = path.resolve(__dirname, '..', 'atom', 'browser', 'resources', 'win', 'atom.rc')
+  const filePath = path.resolve(__dirname, '..', 'shell', 'browser', 'resources', 'win', 'atom.rc')
   const data = await readFile(filePath, 'utf8')
   const arr = data.split('\n')
   arr.forEach((line, idx) => {

+ 2 - 1
script/lib/util.py

@@ -176,7 +176,8 @@ def execute_stdout(argv, env=None, cwd=None):
 
 def get_electron_branding():
   SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
-  branding_file_path = os.path.join(SOURCE_ROOT, 'atom', 'app', 'BRANDING.json')
+  branding_file_path = os.path.join(
+    SOURCE_ROOT, 'shell', 'app', 'BRANDING.json')
   with open(branding_file_path) as f:
     return json.load(f)