投稿者: user ss

  • Install the GitHub CLI (gh) command

    PS C:\Users\user> choco install gh

    Chocolatey v2.2.2

    Installing the following packages:

    gh

    By installing, you accept licenses for the packages.

    Progress: Downloading gh 2.36.0… 100%

    gh v2.36.0 [Approved]

    gh package files install completed. Performing other installation steps.

    The package gh wants to run ‘chocolateyInstall.ps1’.

    Note: If you don’t run this script, the installation will fail.

    Note: To confirm automatically next time, use ‘-y’ or consider:

    choco feature enable -n allowGlobalConfirmation

    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    Installing 64-bit gh…

    gh has been installed.

      gh may be able to be automatically uninstalled.

    Environment Vars (like PATH) have changed. Close/reopen your shell to

     see the changes (or in powershell/cmd.exe just type `refreshenv`).

     The install of gh was successful.

      Software installed as ‘MSI’, install location is likely default.

    Chocolatey installed 1/1 packages.

     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    PS C:\Users\user>

    PS C:\Users\user> gh

    Work seamlessly with GitHub from the command line.

    USAGE

      gh <command> <subcommand> [flags]

    CORE COMMANDS

      auth:        Authenticate gh and git with GitHub

      browse:      Open the repository in the browser

      codespace:   Connect to and manage codespaces

      gist:        Manage gists

      issue:       Manage issues

      org:         Manage organizations

      pr:          Manage pull requests

      project:     Work with GitHub Projects.

      release:     Manage releases

      repo:        Manage repositories

    GITHUB ACTIONS COMMANDS

      cache:       Manage Github Actions caches

      run:         View details about workflow runs

      workflow:    View details about GitHub Actions workflows

    ALIAS COMMANDS

      co:          Alias for “pr checkout”

    ADDITIONAL COMMANDS

      alias:       Create command shortcuts

      api:         Make an authenticated GitHub API request

      completion:  Generate shell completion scripts

      config:      Manage configuration for gh

      extension:   Manage gh extensions

      gpg-key:     Manage GPG keys

      label:       Manage labels

      ruleset:     View info about repo rulesets

      search:      Search for repositories, issues, and pull requests

      secret:      Manage GitHub secrets

      ssh-key:     Manage SSH keys

      status:      Print information about relevant issues, pull requests, and notifications across repositories

      variable:    Manage GitHub Actions variables

    HELP TOPICS

      actions:     Learn about working with GitHub Actions

      environment: Environment variables that can be used with gh

      exit-codes:  Exit codes used by gh

      formatting:  Formatting options for JSON data exported from gh

      mintty:      Information about using gh with MinTTY

      reference:   A comprehensive reference of all gh commands

    FLAGS

      –help      Show help for command

      –version   Show gh version

    EXAMPLES

      $ gh issue create

      $ gh repo clone cli/cli

      $ gh pr checkout 321

    LEARN MORE

      Use ‘gh <command> <subcommand> –help’ for more information about a command.

      Read the manual at https://cli.github.com/manual

    PS C:\Users\user> gh –version

    gh version 2.36.0 (2023-10-03)

    https://github.com/cli/cli/releases/tag/v2.36.0

    PS C:\Users\user>

  • Dart install, setting

    C:\Users\user>choco install dart-sdk

    Chocolatey v2.2.2

    3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

    Validation Warnings:

     – A pending system reboot request has been detected, however, this is

       being ignored due to the current Chocolatey configuration.  If you

       want to halt when this occurs, then either set the global feature

       using:

         choco feature enable –name=”exitOnRebootDetected”

       or pass the option –exit-when-reboot-detected.

    Installing the following packages:

    dart-sdk

    By installing, you accept licenses for the packages.

    Progress: Downloading dart-sdk 3.1.2… 100%

    dart-sdk v3.1.2 [Approved]

    dart-sdk package files install completed. Performing other installation steps.

    The package dart-sdk wants to run ‘chocolateyInstall.ps1’.

    Note: If you don’t run this script, the installation will fail.

    Note: To confirm automatically next time, use ‘-y’ or consider:

    choco feature enable -n allowGlobalConfirmation

    Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y

    PATH environment variable does not have C:\tools\dart-sdk\bin in it. Adding…

    PATH environment variable does not have C:\Users\user\AppData\Local\Pub\Cache\bin in it. Adding…

    Downloading dart-sdk 64 bit

      from ‘https://storage.googleapis.com/dart-archive/channels/stable/release/3.1.2/sdk/dartsdk-windows-x64-release.zip’

    Progress: 100% – Completed download of C:\Users\user\AppData\Local\Temp\dart-sdk\3.1.2\dartsdk-windows-x64-release.zip (196.46 MB).

    Download of dartsdk-windows-x64-release.zip (196.46 MB) completed.

    Hashes match.

    Extracting C:\Users\user\AppData\Local\Temp\dart-sdk\3.1.2\dartsdk-windows-x64-release.zip to C:\tools…

    C:\tools

    Environment Vars (like PATH) have changed. Close/reopen your shell to

     see the changes (or in powershell/cmd.exe just type `refreshenv`).

     The install of dart-sdk was successful.

      Software installed to ‘C:\tools’

    Chocolatey installed 1/1 packages.

     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

    C:\Users\user>

    PS C:\Users\user> dart –version
    Dart SDK version: 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on “windows_x64”

  • zbuild setup

    PS C:\Users\user> zbuild setup
    Chocolatey v2.2.2
    3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).
    
    Validation Warnings:
     - A pending system reboot request has been detected, however, this is
       being ignored due to the current Chocolatey configuration.  If you
       want to halt when this occurs, then either set the global feature
       using:
         choco feature enable --name="exitOnRebootDetected"
       or pass the option --exit-when-reboot-detected.
    
    Installing the following packages:
    mingw;golang;upx
    By installing, you accept licenses for the packages.
    Progress: Downloading mingw 12.2.0.03042023... 100%
    
    mingw v12.2.0.3042023 [Approved]
    mingw package files install completed. Performing other installation steps.
    The package mingw wants to run 'chocolateyinstall.ps1'.
    Note: If you don't run this script, the installation will fail.
    Note: To confirm automatically next time, use '-y' or consider:
    choco feature enable -n allowGlobalConfirmation
    Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
    
    Downloading mingw 64 bit
      from 'https://github.com/niXman/mingw-builds-binaries/releases/download/12.2.0-rt_v10-rev2/x86_64-12.2.0-release-posix-seh-ucrt-rt_v10-rev2.7z'
    Progress: 100% - Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\mingw\12.2.0.3042023\x86_64-12.2.0-release-posix-seh-ucrt-rt_v10-rev2.7z (68 MB).
    Download of x86_64-12.2.0-release-posix-seh-ucrt-rt_v10-rev2.7z (68 MB) completed.
    Hashes match.
    Extracting C:\Users\user\AppData\Local\Temp\chocolatey\mingw\12.2.0.3042023\x86_64-12.2.0-release-posix-seh-ucrt-rt_v10-rev2.7z to C:\ProgramData\chocolatey\lib\mingw\tools\install...
    C:\ProgramData\chocolatey\lib\mingw\tools\install
    Testing path: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw32\bin
    Testing path: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
    PATH environment variable does not have C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin in it. Adding...
    Environment Vars (like PATH) have changed. Close/reopen your shell to
     see the changes (or in powershell/cmd.exe just type `refreshenv`).
     ShimGen has successfully created a shim for addr2line.exe
     ShimGen has successfully created a shim for ar.exe
     ShimGen has successfully created a shim for as.exe
     ShimGen has successfully created a shim for c++.exe
     ShimGen has successfully created a shim for c++filt.exe
     ShimGen has successfully created a shim for cpp.exe
     ShimGen has successfully created a shim for dlltool.exe
     ShimGen has successfully created a shim for dllwrap.exe
     ShimGen has successfully created a shim for dwp.exe
     ShimGen has successfully created a shim for elfedit.exe
     ShimGen has successfully created a shim for g++.exe
     ShimGen has successfully created a shim for gcc-ar.exe
     ShimGen has successfully created a shim for gcc-nm.exe
     ShimGen has successfully created a shim for gcc-ranlib.exe
     ShimGen has successfully created a shim for gcc.exe
     ShimGen has successfully created a shim for gcov-dump.exe
     ShimGen has successfully created a shim for gcov-tool.exe
     ShimGen has successfully created a shim for gcov.exe
     ShimGen has successfully created a shim for gdb.exe
     ShimGen has successfully created a shim for gdborig.exe
     ShimGen has successfully created a shim for gdbserver.exe
     ShimGen has successfully created a shim for gendef.exe
     ShimGen has successfully created a shim for genidl.exe
     ShimGen has successfully created a shim for genpeimg.exe
     ShimGen has successfully created a shim for gfortran.exe
     ShimGen has successfully created a shim for gprof.exe
     ShimGen has successfully created a shim for ld.bfd.exe
     ShimGen has successfully created a shim for ld.exe
     ShimGen has successfully created a shim for ld.gold.exe
     ShimGen has successfully created a shim for lto-dump.exe
     ShimGen has successfully created a shim for mingw32-make.exe
     ShimGen has successfully created a shim for nm.exe
     ShimGen has successfully created a shim for objcopy.exe
     ShimGen has successfully created a shim for objdump.exe
     ShimGen has successfully created a shim for ranlib.exe
     ShimGen has successfully created a shim for readelf.exe
     ShimGen has successfully created a shim for size.exe
     ShimGen has successfully created a shim for strings.exe
     ShimGen has successfully created a shim for strip.exe
     ShimGen has successfully created a shim for widl.exe
     ShimGen has successfully created a shim for windmc.exe
     ShimGen has successfully created a shim for windres.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-c++.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-g++.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-12.2.0.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-ar.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-nm.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc-ranlib.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-gcc.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-gfortran.exe
     ShimGen has successfully created a shim for cc1.exe
     ShimGen has successfully created a shim for cc1plus.exe
     ShimGen has successfully created a shim for collect2.exe
     ShimGen has successfully created a shim for f951.exe
     ShimGen has successfully created a shim for g++-mapper-server.exe
     ShimGen has successfully created a shim for lto-wrapper.exe
     ShimGen has successfully created a shim for lto1.exe
     ShimGen has successfully created a shim for fixincl.exe
     ShimGen has successfully created a shim for gdbmtool.exe
     ShimGen has successfully created a shim for gdbm_dump.exe
     ShimGen has successfully created a shim for gdbm_load.exe
     ShimGen has successfully created a shim for python3.9.exe
     ShimGen has successfully created a shim for python3.exe
     ShimGen has successfully created a shim for python3w.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-captoinfo.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-clear.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-infocmp.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-infotocap.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-reset.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-tabs.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-tic.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-toe.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-tput.exe
     ShimGen has successfully created a shim for x86_64-w64-mingw32-tset.exe
     ShimGen has successfully created a shim for python.exe
     ShimGen has successfully created a shim for pythonw.exe
     ShimGen has successfully created a shim for ar.exe
     ShimGen has successfully created a shim for as.exe
     ShimGen has successfully created a shim for dlltool.exe
     ShimGen has successfully created a shim for ld.bfd.exe
     ShimGen has successfully created a shim for ld.exe
     ShimGen has successfully created a shim for ld.gold.exe
     ShimGen has successfully created a shim for nm.exe
     ShimGen has successfully created a shim for objcopy.exe
     ShimGen has successfully created a shim for objdump.exe
     ShimGen has successfully created a shim for ranlib.exe
     ShimGen has successfully created a shim for readelf.exe
     ShimGen has successfully created a shim for strip.exe
     The install of mingw was successful.
      Software installed to 'C:\ProgramData\chocolatey\lib\mingw\tools\install'
    golang v1.21.0 already installed.
     Use --force to reinstall, specify a version to install, or try upgrade.
    Progress: Downloading upx 4.1.0... 100%
    
    upx v4.1.0 [Approved]
    upx package files install completed. Performing other installation steps.
    The package upx wants to run 'chocolateyInstall.ps1'.
    Note: If you don't run this script, the installation will fail.
    Note: To confirm automatically next time, use '-y' or consider:
    choco feature enable -n allowGlobalConfirmation
    Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
    
    Extracting 64-bit C:\ProgramData\chocolatey\lib\upx\tools\upx-4.1.0-win64_x64.zip to C:\ProgramData\chocolatey\lib\upx\tools...
    C:\ProgramData\chocolatey\lib\upx\tools
     ShimGen has successfully created a shim for upx.exe
     The install of upx was successful.
      Software installed to 'C:\ProgramData\chocolatey\lib\upx\tools'
    
    Chocolatey installed 2/3 packages.
     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    
    Warnings:
     - golang - golang v1.21.0 already installed.
     Use --force to reinstall, specify a version to install, or try upgrade.
    PS C:\Users\user>
  • go install github.com/nextzlog/zylo/zbuild@HEAD

    PS C:\Users\user>go install github.com/nextzlog/zylo/zbuild@HEAD
    go: downloading github.com/nextzlog/zylo v0.0.0-20230731144900-3ee901885e98
    go: finding module for package gopkg.in/yaml.v2
    go: finding module for package github.com/urfave/cli
    go: downloading github.com/urfave/cli v1.22.14
    go: found github.com/urfave/cli in github.com/urfave/cli v1.22.14
    go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
    go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
    go: downloading github.com/russross/blackfriday/v2 v2.1.0
    PS C:\Users\user>