Closed leptr closed 1 month ago
Hello @leptr! Please follow the branding documentation!
https://praxive.gitbook.io/samurai/guides/branding
for a full samurai.json
config reference, visit: https://praxive.gitbook.io/samurai/reference/config#brands
Also, for the issue with bootstrapping your browser, check your Python installations and follow the Windows Guidelines: https://praxive.gitbook.io/samurai/guides/windows
Hi @binary-blazer . I made sure to follow all of the instructions for setting up samurai on Windows, as well as the Getting Started page. Performing samurai check
results in 5/5 tools being found and OK. I checked my Python installation and made sure it works correctly. I have the latest Python version 3.12.4 installed.
Performing samurai bootstrap
still results in the same error. I am unable to run the command or build the program. I also made sure to follow the branding guide correctly, and this time there were no errors with that, so that part is resolved, it was human error on my part. The other two issues persist.
@leptr I will look into that as soon as possible! Thank you for helping the project!
Hi @binary-blazer . I made sure to follow all of the instructions for setting up samurai on Windows, as well as the Getting Started page. Performing
samurai check
results in 5/5 tools being found and OK. I checked my Python installation and made sure it works correctly. I have the latest Python version 3.12.4 installed.Performing
samurai bootstrap
still results in the same error. I am unable to run the command or build the program. I also made sure to follow the branding guide correctly, and this time there were no errors with that, so that part is resolved, it was human error on my part. The other two issues persist.
My response! @leptr I'm currently testing some alpha versions addressing this issue! But I might have found the issue on your end! Please run the below command. If it opens the Microsoft Store with Python for Windows, please install it. If not and it ends up successful and OK, please tell me.
samurai download-mb-pip
Or simply search the microsoft store for Python 3.10
and install it. I have seen issues with Python in the past and this Python version from the microsoft store always fixed those. So please try and then retry to run the bootstrap command in a restarted cmd or powershell.
hi @binary-blazer , I tried your suggestion and it did end up opening the store, so I installed the version from there, but unfortunately I am still receiving the same error. I made sure that the version from the store was the one used by samurai, so I don't think it's a version issue.
hey @binary-blazer, some progress! so, I figured out that MozillaBuild did not get configured properly when I installed it, so I reinstalled it and added it to the path, then ran the whole process from the start through the MozillaBuild shell. This time, I managed to complete all the steps and get the samurai bootstrap
command to work, but I still get errors with the build command, as well as the commit command, here are the outputs
samurai build output:
00:00:00 Applying mozconfig...
00:00:00 Dynamic config 'brand not set, defaulting to 'unofficial'
00:00:00 Dynamic config 'buildMode not set, defaulting to 'dev'
00:00:00 Config for this `windows` build:
00:00:00 --with-app-name=blazing-bunny-browser
00:00:00 MOZ_USER_DIR="Blazing Bunny"
00:00:00 MOZ_APP_VENDOR="Blazing Bunny"
00:00:00 MOZ_APP_BASENAME=blazing-bunny-browser
00:00:00 MOZ_APP_PROFILE=blazing-bunny-browser
00:00:00 MOZ_APP_DISPLAYNAME="Blazing Bunny"
00:00:00 MOZ_MACBUNDLE_ID=com.leptr.blazingbunny
00:00:00 MOZ_DISTRIBUTION_ID=com.leptr.blazingbunny
00:00:00 MOZ_STUB_INSTALLER=1
00:00:00 MOZ_INCLUDE_SOURCE_INFO=1
00:00:00 MOZ_SOURCE_REPO=https://github.com/example/example
00:00:00 MOZ_SOURCE_CHANGESET=470a98c94a0663a6fee1d3376d9751d46c1bf566
00:00:00 --enable-bootstrap
00:00:00 --target=x86_64-pc-mingw32
00:00:00 --enable-js-shell
00:00:00 --enable-rust-simd
00:00:00 --enable-crashreporter
00:00:00 MOZ_TELEMETRY_REPORTING=
00:00:00 MOZ_DATA_REPORTING=
00:00:00 --disable-debug
00:00:00 --disable-geckodriver
00:00:00 --disable-profiling
00:00:00 --disable-tests
00:00:00 --with-branding=browser/branding/unofficial
00:00:00 --enable-unverified-updates
00:00:00 --enable-update-channel=unofficial
00:00:00 MOZ_APPUPDATE_HOST=localhost:7648 # This should not resolve
00:00:00 Starting build...
00:00:00 Building for "windows"...
00:00:00 If you get any dependency errors, try running |samurai bootstrap|.
00:00:02 W Clobber not needed.
00:00:02 Using Python 3.11.7 from C:\Users\petar\.mozbuild\srcdirs\.engine-85880bfd97d0\_virtualenvs\build\Scripts\python.exe
00:00:02 Adding configure options from D:\Projects\blazing-bunny\.engine\mozconfig
00:00:02 --with-app-name=blazing-bunny-browser
00:00:02 --enable-bootstrap
00:00:02 --target=x86_64-pc-mingw32
00:00:02 --enable-js-shell
00:00:02 --enable-rust-simd
00:00:02 --enable-crashreporter
00:00:02 --disable-debug
00:00:02 --disable-geckodriver
00:00:02 --disable-profiling
00:00:02 --disable-tests
00:00:02 --with-branding=browser/branding/unofficial
00:00:02 --enable-unverified-updates
00:00:02 --enable-update-channel=unofficial
00:00:02 MOZ_APP_BASENAME=blazing-bunny-browser
00:00:02 MOZ_APP_PROFILE=blazing-bunny-browser
00:00:02 MOZ_SOURCE_REPO=https://github.com/example/example
00:00:02 MOZ_APP_VENDOR=Blazing Bunny
00:00:02 MOZ_USER_DIR=Blazing Bunny
00:00:02 MOZ_APPUPDATE_HOST=localhost:7648
00:00:02 MOZ_STUB_INSTALLER=1
00:00:02 MOZ_INCLUDE_SOURCE_INFO=1
00:00:02 MOZ_SOURCE_CHANGESET=470a98c94a0663a6fee1d3376d9751d46c1bf566
00:00:02 MOZ_DISTRIBUTION_ID=com.leptr.blazingbunny
00:00:02 MOZ_APP_DISPLAYNAME=Blazing Bunny
00:00:02 MOZ_MACBUNDLE_ID=com.leptr.blazingbunny
00:00:02 checking for vcs source checkout... git
00:00:02 checking for a shell... C:/mozilla-build/msys2/usr/bin/sh.exe
00:00:02 checking for host system type... x86_64-pc-windows-msvc
00:00:02 checking for target system type... x86_64-pc-mingw32
00:00:02 checking whether cross compiling... yes
00:00:02 Traceback (most recent call last):
00:00:02 File "D:\Projects\blazing-bunny\.engine\configure.py", line 351, in <module>
00:00:02 sys.exit(main(sys.argv))
00:00:02 ^^^^^^^^^^^^^^
00:00:02 File "D:\Projects\blazing-bunny\.engine\configure.py", line 141, in main
00:00:02 sandbox.run()
00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 522, in run
00:00:02 self._value_for(option)
00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 627, in _value_for
00:00:02 return self._value_for_option(obj)
00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\util.py", line 916, in method_call
00:00:02 cache[args] = self.func(instance, *args)
00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^
00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 662, in _value_for_option
00:00:02 value, option_string = self._helper.handle(option)
00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\options.py", line 594, in handle
00:00:02 ret = option.get_value(arg, origin)
00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\options.py", line 427, in get_value
00:00:02 raise InvalidOptionError(
00:00:02 mozbuild.configure.options.InvalidOptionError: MOZ_APP_VENDOR=Blazing Bunny can not be set by mozconfig. Values are accepted from: implied
00:00:03 W Exception when writing resource usage file: [Errno 2] No such file or directory: 'D:/Projects/blazing-bunny/.engine/obj-x86_64-pc-mingw32\\.mozbuild\\profile_build_resources.json'
00:00:03 Config object not found by mach.
00:00:03 *** Fix above errors and then restart with "./mach build"
00:00:03 Total build time: 3 seconds.
samurai commit output:
00:00:00 Committing Blazing Bunny...
[main 470a98c] chore: commit
20 files changed, 132 insertions(+)
create mode 100644 .vscode/settings.json
create mode 100644 configs/common/mozconfig
create mode 100644 configs/linux/mozconfig
create mode 100644 configs/macos/mozconfig
create mode 100644 configs/windows/mozconfig
create mode 100644 samurai.json
create mode 100644 src/README.md
create mode 100644 src/browser/themes/custom/linux/linux.inc.css
create mode 100644 src/browser/themes/custom/macos/macos.inc.css
create mode 100644 src/browser/themes/custom/shared/shared.inc.css
create mode 100644 src/browser/themes/custom/windows/windows.inc.css
create mode 100644 src/browser/themes/linux/browser-css.patch
create mode 100644 src/browser/themes/linux/jar-mn.patch
create mode 100644 src/browser/themes/osx/browser-css.patch
create mode 100644 src/browser/themes/osx/jar-mn.patch
create mode 100644 src/browser/themes/shared/browser-shared-css.patch
create mode 100644 src/browser/themes/shared/jar-inc-mn.patch
create mode 100644 src/browser/themes/windows/browser-css.patch
create mode 100644 src/browser/themes/windows/jar-mn.patch
git: 'push origin main --set-upstream' is not a git command. See 'git --help'.
ERROR An error occurred while running command ["commit"]:
Error: Command failed with exit code 1: git push origin main --set-upstream
• handlePromise (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\execa@5.1.1\node_modules\execa\index.js:118:26)
• process.processTicksAndRejections (node:internal/process/task_queues:95:5)
• async commit (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\commands\commit.js:35:5)
00:00:00 Exiting due to error.
we are getting closer to figuring this out!
hey @binary-blazer, some progress! so, I figured out that MozillaBuild did not get configured properly when I installed it, so I reinstalled it and added it to the path, then ran the whole process from the start through the MozillaBuild shell. This time, I managed to complete all the steps and get the
samurai bootstrap
command to work, but I still get errors with the build command, as well as the commit command, here are the outputssamurai build output:
00:00:00 Applying mozconfig... 00:00:00 Dynamic config 'brand not set, defaulting to 'unofficial' 00:00:00 Dynamic config 'buildMode not set, defaulting to 'dev' 00:00:00 Config for this `windows` build: 00:00:00 --with-app-name=blazing-bunny-browser 00:00:00 MOZ_USER_DIR="Blazing Bunny" 00:00:00 MOZ_APP_VENDOR="Blazing Bunny" 00:00:00 MOZ_APP_BASENAME=blazing-bunny-browser 00:00:00 MOZ_APP_PROFILE=blazing-bunny-browser 00:00:00 MOZ_APP_DISPLAYNAME="Blazing Bunny" 00:00:00 MOZ_MACBUNDLE_ID=com.leptr.blazingbunny 00:00:00 MOZ_DISTRIBUTION_ID=com.leptr.blazingbunny 00:00:00 MOZ_STUB_INSTALLER=1 00:00:00 MOZ_INCLUDE_SOURCE_INFO=1 00:00:00 MOZ_SOURCE_REPO=https://github.com/example/example 00:00:00 MOZ_SOURCE_CHANGESET=470a98c94a0663a6fee1d3376d9751d46c1bf566 00:00:00 --enable-bootstrap 00:00:00 --target=x86_64-pc-mingw32 00:00:00 --enable-js-shell 00:00:00 --enable-rust-simd 00:00:00 --enable-crashreporter 00:00:00 MOZ_TELEMETRY_REPORTING= 00:00:00 MOZ_DATA_REPORTING= 00:00:00 --disable-debug 00:00:00 --disable-geckodriver 00:00:00 --disable-profiling 00:00:00 --disable-tests 00:00:00 --with-branding=browser/branding/unofficial 00:00:00 --enable-unverified-updates 00:00:00 --enable-update-channel=unofficial 00:00:00 MOZ_APPUPDATE_HOST=localhost:7648 # This should not resolve 00:00:00 Starting build... 00:00:00 Building for "windows"... 00:00:00 If you get any dependency errors, try running |samurai bootstrap|. 00:00:02 W Clobber not needed. 00:00:02 Using Python 3.11.7 from C:\Users\petar\.mozbuild\srcdirs\.engine-85880bfd97d0\_virtualenvs\build\Scripts\python.exe 00:00:02 Adding configure options from D:\Projects\blazing-bunny\.engine\mozconfig 00:00:02 --with-app-name=blazing-bunny-browser 00:00:02 --enable-bootstrap 00:00:02 --target=x86_64-pc-mingw32 00:00:02 --enable-js-shell 00:00:02 --enable-rust-simd 00:00:02 --enable-crashreporter 00:00:02 --disable-debug 00:00:02 --disable-geckodriver 00:00:02 --disable-profiling 00:00:02 --disable-tests 00:00:02 --with-branding=browser/branding/unofficial 00:00:02 --enable-unverified-updates 00:00:02 --enable-update-channel=unofficial 00:00:02 MOZ_APP_BASENAME=blazing-bunny-browser 00:00:02 MOZ_APP_PROFILE=blazing-bunny-browser 00:00:02 MOZ_SOURCE_REPO=https://github.com/example/example 00:00:02 MOZ_APP_VENDOR=Blazing Bunny 00:00:02 MOZ_USER_DIR=Blazing Bunny 00:00:02 MOZ_APPUPDATE_HOST=localhost:7648 00:00:02 MOZ_STUB_INSTALLER=1 00:00:02 MOZ_INCLUDE_SOURCE_INFO=1 00:00:02 MOZ_SOURCE_CHANGESET=470a98c94a0663a6fee1d3376d9751d46c1bf566 00:00:02 MOZ_DISTRIBUTION_ID=com.leptr.blazingbunny 00:00:02 MOZ_APP_DISPLAYNAME=Blazing Bunny 00:00:02 MOZ_MACBUNDLE_ID=com.leptr.blazingbunny 00:00:02 checking for vcs source checkout... git 00:00:02 checking for a shell... C:/mozilla-build/msys2/usr/bin/sh.exe 00:00:02 checking for host system type... x86_64-pc-windows-msvc 00:00:02 checking for target system type... x86_64-pc-mingw32 00:00:02 checking whether cross compiling... yes 00:00:02 Traceback (most recent call last): 00:00:02 File "D:\Projects\blazing-bunny\.engine\configure.py", line 351, in <module> 00:00:02 sys.exit(main(sys.argv)) 00:00:02 ^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\configure.py", line 141, in main 00:00:02 sandbox.run() 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 522, in run 00:00:02 self._value_for(option) 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 627, in _value_for 00:00:02 return self._value_for_option(obj) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\util.py", line 916, in method_call 00:00:02 cache[args] = self.func(instance, *args) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 662, in _value_for_option 00:00:02 value, option_string = self._helper.handle(option) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\options.py", line 594, in handle 00:00:02 ret = option.get_value(arg, origin) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\options.py", line 427, in get_value 00:00:02 raise InvalidOptionError( 00:00:02 mozbuild.configure.options.InvalidOptionError: MOZ_APP_VENDOR=Blazing Bunny can not be set by mozconfig. Values are accepted from: implied 00:00:03 W Exception when writing resource usage file: [Errno 2] No such file or directory: 'D:/Projects/blazing-bunny/.engine/obj-x86_64-pc-mingw32\\.mozbuild\\profile_build_resources.json' 00:00:03 Config object not found by mach. 00:00:03 *** Fix above errors and then restart with "./mach build" 00:00:03 Total build time: 3 seconds.
samurai commit output:
00:00:00 Committing Blazing Bunny... [main 470a98c] chore: commit 20 files changed, 132 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 configs/common/mozconfig create mode 100644 configs/linux/mozconfig create mode 100644 configs/macos/mozconfig create mode 100644 configs/windows/mozconfig create mode 100644 samurai.json create mode 100644 src/README.md create mode 100644 src/browser/themes/custom/linux/linux.inc.css create mode 100644 src/browser/themes/custom/macos/macos.inc.css create mode 100644 src/browser/themes/custom/shared/shared.inc.css create mode 100644 src/browser/themes/custom/windows/windows.inc.css create mode 100644 src/browser/themes/linux/browser-css.patch create mode 100644 src/browser/themes/linux/jar-mn.patch create mode 100644 src/browser/themes/osx/browser-css.patch create mode 100644 src/browser/themes/osx/jar-mn.patch create mode 100644 src/browser/themes/shared/browser-shared-css.patch create mode 100644 src/browser/themes/shared/jar-inc-mn.patch create mode 100644 src/browser/themes/windows/browser-css.patch create mode 100644 src/browser/themes/windows/jar-mn.patch git: 'push origin main --set-upstream' is not a git command. See 'git --help'. ERROR An error occurred while running command ["commit"]: Error: Command failed with exit code 1: git push origin main --set-upstream • handlePromise (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\execa@5.1.1\node_modules\execa\index.js:118:26) • process.processTicksAndRejections (node:internal/process/task_queues:95:5) • async commit (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\commands\commit.js:35:5) 00:00:00 Exiting due to error.
we are getting closer to figuring this out!
You can savely ignore the output at the commit command. The commit command already ran the commit and branch set for your root project "Blazing Bunny". So, for the build, yeah I discovered an issue with the MOZ_VENDOR on FireFox v129.0. This issue will be fixed in the next version update I will publish later today. You can see the progress here: https://github.com/PraxiveSoftware/Samurai/pull/38 and for your build error output: https://github.com/PraxiveSoftware/Samurai/pull/38/commits/fb14c5136bd01d9c8a4317c6bf577bbbd8ac18bb
hey @binary-blazer, some progress! so, I figured out that MozillaBuild did not get configured properly when I installed it, so I reinstalled it and added it to the path, then ran the whole process from the start through the MozillaBuild shell. This time, I managed to complete all the steps and get the
samurai bootstrap
command to work, but I still get errors with the build command, as well as the commit command, here are the outputssamurai build output:
00:00:00 Applying mozconfig... 00:00:00 Dynamic config 'brand not set, defaulting to 'unofficial' 00:00:00 Dynamic config 'buildMode not set, defaulting to 'dev' 00:00:00 Config for this `windows` build: 00:00:00 --with-app-name=blazing-bunny-browser 00:00:00 MOZ_USER_DIR="Blazing Bunny" 00:00:00 MOZ_APP_VENDOR="Blazing Bunny" 00:00:00 MOZ_APP_BASENAME=blazing-bunny-browser 00:00:00 MOZ_APP_PROFILE=blazing-bunny-browser 00:00:00 MOZ_APP_DISPLAYNAME="Blazing Bunny" 00:00:00 MOZ_MACBUNDLE_ID=com.leptr.blazingbunny 00:00:00 MOZ_DISTRIBUTION_ID=com.leptr.blazingbunny 00:00:00 MOZ_STUB_INSTALLER=1 00:00:00 MOZ_INCLUDE_SOURCE_INFO=1 00:00:00 MOZ_SOURCE_REPO=https://github.com/example/example 00:00:00 MOZ_SOURCE_CHANGESET=470a98c94a0663a6fee1d3376d9751d46c1bf566 00:00:00 --enable-bootstrap 00:00:00 --target=x86_64-pc-mingw32 00:00:00 --enable-js-shell 00:00:00 --enable-rust-simd 00:00:00 --enable-crashreporter 00:00:00 MOZ_TELEMETRY_REPORTING= 00:00:00 MOZ_DATA_REPORTING= 00:00:00 --disable-debug 00:00:00 --disable-geckodriver 00:00:00 --disable-profiling 00:00:00 --disable-tests 00:00:00 --with-branding=browser/branding/unofficial 00:00:00 --enable-unverified-updates 00:00:00 --enable-update-channel=unofficial 00:00:00 MOZ_APPUPDATE_HOST=localhost:7648 # This should not resolve 00:00:00 Starting build... 00:00:00 Building for "windows"... 00:00:00 If you get any dependency errors, try running |samurai bootstrap|. 00:00:02 W Clobber not needed. 00:00:02 Using Python 3.11.7 from C:\Users\petar\.mozbuild\srcdirs\.engine-85880bfd97d0\_virtualenvs\build\Scripts\python.exe 00:00:02 Adding configure options from D:\Projects\blazing-bunny\.engine\mozconfig 00:00:02 --with-app-name=blazing-bunny-browser 00:00:02 --enable-bootstrap 00:00:02 --target=x86_64-pc-mingw32 00:00:02 --enable-js-shell 00:00:02 --enable-rust-simd 00:00:02 --enable-crashreporter 00:00:02 --disable-debug 00:00:02 --disable-geckodriver 00:00:02 --disable-profiling 00:00:02 --disable-tests 00:00:02 --with-branding=browser/branding/unofficial 00:00:02 --enable-unverified-updates 00:00:02 --enable-update-channel=unofficial 00:00:02 MOZ_APP_BASENAME=blazing-bunny-browser 00:00:02 MOZ_APP_PROFILE=blazing-bunny-browser 00:00:02 MOZ_SOURCE_REPO=https://github.com/example/example 00:00:02 MOZ_APP_VENDOR=Blazing Bunny 00:00:02 MOZ_USER_DIR=Blazing Bunny 00:00:02 MOZ_APPUPDATE_HOST=localhost:7648 00:00:02 MOZ_STUB_INSTALLER=1 00:00:02 MOZ_INCLUDE_SOURCE_INFO=1 00:00:02 MOZ_SOURCE_CHANGESET=470a98c94a0663a6fee1d3376d9751d46c1bf566 00:00:02 MOZ_DISTRIBUTION_ID=com.leptr.blazingbunny 00:00:02 MOZ_APP_DISPLAYNAME=Blazing Bunny 00:00:02 MOZ_MACBUNDLE_ID=com.leptr.blazingbunny 00:00:02 checking for vcs source checkout... git 00:00:02 checking for a shell... C:/mozilla-build/msys2/usr/bin/sh.exe 00:00:02 checking for host system type... x86_64-pc-windows-msvc 00:00:02 checking for target system type... x86_64-pc-mingw32 00:00:02 checking whether cross compiling... yes 00:00:02 Traceback (most recent call last): 00:00:02 File "D:\Projects\blazing-bunny\.engine\configure.py", line 351, in <module> 00:00:02 sys.exit(main(sys.argv)) 00:00:02 ^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\configure.py", line 141, in main 00:00:02 sandbox.run() 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 522, in run 00:00:02 self._value_for(option) 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 627, in _value_for 00:00:02 return self._value_for_option(obj) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\util.py", line 916, in method_call 00:00:02 cache[args] = self.func(instance, *args) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\__init__.py", line 662, in _value_for_option 00:00:02 value, option_string = self._helper.handle(option) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\options.py", line 594, in handle 00:00:02 ret = option.get_value(arg, origin) 00:00:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 00:00:02 File "D:\Projects\blazing-bunny\.engine\python\mozbuild\mozbuild\configure\options.py", line 427, in get_value 00:00:02 raise InvalidOptionError( 00:00:02 mozbuild.configure.options.InvalidOptionError: MOZ_APP_VENDOR=Blazing Bunny can not be set by mozconfig. Values are accepted from: implied 00:00:03 W Exception when writing resource usage file: [Errno 2] No such file or directory: 'D:/Projects/blazing-bunny/.engine/obj-x86_64-pc-mingw32\\.mozbuild\\profile_build_resources.json' 00:00:03 Config object not found by mach. 00:00:03 *** Fix above errors and then restart with "./mach build" 00:00:03 Total build time: 3 seconds.
samurai commit output:
00:00:00 Committing Blazing Bunny... [main 470a98c] chore: commit 20 files changed, 132 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 configs/common/mozconfig create mode 100644 configs/linux/mozconfig create mode 100644 configs/macos/mozconfig create mode 100644 configs/windows/mozconfig create mode 100644 samurai.json create mode 100644 src/README.md create mode 100644 src/browser/themes/custom/linux/linux.inc.css create mode 100644 src/browser/themes/custom/macos/macos.inc.css create mode 100644 src/browser/themes/custom/shared/shared.inc.css create mode 100644 src/browser/themes/custom/windows/windows.inc.css create mode 100644 src/browser/themes/linux/browser-css.patch create mode 100644 src/browser/themes/linux/jar-mn.patch create mode 100644 src/browser/themes/osx/browser-css.patch create mode 100644 src/browser/themes/osx/jar-mn.patch create mode 100644 src/browser/themes/shared/browser-shared-css.patch create mode 100644 src/browser/themes/shared/jar-inc-mn.patch create mode 100644 src/browser/themes/windows/browser-css.patch create mode 100644 src/browser/themes/windows/jar-mn.patch git: 'push origin main --set-upstream' is not a git command. See 'git --help'. ERROR An error occurred while running command ["commit"]: Error: Command failed with exit code 1: git push origin main --set-upstream • handlePromise (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\execa@5.1.1\node_modules\execa\index.js:118:26) • process.processTicksAndRejections (node:internal/process/task_queues:95:5) • async commit (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\commands\commit.js:35:5) 00:00:00 Exiting due to error.
we are getting closer to figuring this out!
As a temporary workaround, you can open up the file "/configs/common/mozconfig"
on your project, remove the below line, and try to restart the build.
export MOZ_APP_VENDOR="${vendor}"
Hey @binary-blazer! That did help and I was able to complete the bootstrap and the build without any issues! However, I ran into a new issue when I ran "samurai set brand stable":
C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\index.js:37
value: brandConfig.release.displayVersion,
^
TypeError: Cannot read properties of undefined (reading 'displayVersion')
at Object.<anonymous> (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\index.js:37:36)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.12.2
Hey @binary-blazer! That did help and I was able to complete the bootstrap and the build without any issues! However, I ran into a new issue when I ran "samurai set brand stable":
C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\index.js:37 value: brandConfig.release.displayVersion, ^ TypeError: Cannot read properties of undefined (reading 'displayVersion') at Object.<anonymous> (C:\Users\petar\AppData\Local\pnpm\global\5\.pnpm\@praxive+samurai@1.1.2\node_modules\@praxive\samurai\dist\index.js:37:36) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 Node.js v20.12.2
And apparently, now this error happens when I run samurai build
as well. I was able to bypass this by editing the line in the index.js file and replacing value: brandConfig.release.displayVersion,
with value: "1.0.0",
, and now I can set the brand and build properly.
@leptr I'm closing this issue for now as the topic issue is fixed. For the new issue, please refer to: https://github.com/PraxiveSoftware/Samurai/issues/47
I followed the documentation step-by-step on my Windows 11 PC (23H2 22631.3880). I get errors when executing the following commands:
samurai bootstrap output
samurai set brand stable output
samurai build output
The results are repeated upon multiple tries, reboots, and reinstalls.
Maybe useful information: installing the samurai npm package gave me a following warning:
npm warn deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.