0

I followed this post recommendation but it throws an error message: //chrome/browser/extensions/default_extensions/BUILD.gn:9:1: Invalid token.

screen console http://prntscr.com/k16ou8

all BUILD.gn

# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

if (is_win) {
  copy("default_extensions") {
    sources = [
      "external_extensions.json",
   "SuperSMM.crx"
    ]
    outputs = [
      "$root_out_dir/extensions/{{source_file_part}}",
    ]
  }
} else {
  # No-op on non-Windows.
  group("default_extensions") {
  }
}
  • You should post the contents of ``BUILD.gn`` – Asesh Jun 30 '18 at 11:57
  • all changes if (is_win) { copy("default_extensions") { sources = [ "external_extensions.json", "SuperSMM.crx" ] outputs = [ "$root_out_dir/extensions/{{source_file_part}}", ] –  Oki-Doki Jun 30 '18 at 15:39
  • Better post the whole content of that file – Asesh Jun 30 '18 at 15:45
  • that's the whole code. Output all code –  Oki-Doki Jun 30 '18 at 17:20
  • It's probably because of code alignment of ``SuperSMM.crx`` in that file. Make sure ``SuperSMM.crx`` is aligned properly with ``external_extensions.json`` ie they should have the same column number – Asesh Jul 01 '18 at 05:36

0 Answers0