Merge branch 'master' of github.com:doy-lee/doy-lee
This commit is contained in:
commit
121ce8b2d5
@ -1,37 +1,459 @@
|
||||
{
|
||||
AccessModifierOffset: -4, # 1 tab
|
||||
AlignAfterOpenBracket: true,
|
||||
AlignConsecutiveAssignments: true,
|
||||
AlignConsecutiveDeclarations: true,
|
||||
AlignTrailingComments: true,
|
||||
AllowAllParametersOfDeclarationOnNextLine: true,
|
||||
AllowShortBlocksOnASingleLine: false,
|
||||
AllowShortIfStatementsOnASingleLine: true,
|
||||
AllowShortLoopsOnASingleLine: false,
|
||||
AllowShortCaseLabelsOnASingleLine: true,
|
||||
AlwaysBreakAfterDefinitionReturnType: false,
|
||||
AlwaysBreakBeforeMultilineStrings: true,
|
||||
AlwaysBreakTemplateDeclarations: true,
|
||||
BinPackArguments: false,
|
||||
BinPackParameters: false,
|
||||
BreakBeforeBraces: Allman,
|
||||
BreakConstructorInitializersBeforeComma: true,
|
||||
ColumnLimit: 120,
|
||||
ConstructorInitializerIndentWidth: 0,
|
||||
Cpp11BracedListStyle: true,
|
||||
IndentCaseLabels: true,
|
||||
IndentFunctionDeclarationAfterType: false,
|
||||
IndentWidth: 4, # 1 tab
|
||||
MaxEmptyLinesToKeep: 1,
|
||||
NamespaceIndentation: None,
|
||||
PointerBindsToType: false,
|
||||
SpaceBeforeAssignmentOperators: true,
|
||||
SpaceInEmptyParentheses: false,
|
||||
SpacesBeforeTrailingComments: 1,
|
||||
SpacesInAngles: false,
|
||||
SpacesInCStyleCastParentheses: false,
|
||||
SpacesInParentheses: false,
|
||||
SpacesInSquareBrackets: false,
|
||||
Standard: Cpp11,
|
||||
TabWidth: 4,
|
||||
}
|
||||
---
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
---
|
||||
Language: Cpp
|
||||
|
||||
# Align parameters on the open bracket, e.g.:
|
||||
# someLongFunction(argument1,
|
||||
# argument2);
|
||||
AlignAfterOpenBracket: Align
|
||||
|
||||
# Align array column and left justify the columns e.g.:
|
||||
# struct test demo[] =
|
||||
# {
|
||||
# {56, 23, "hello"},
|
||||
# {-1, 93463, "world"},
|
||||
# {7, 5, "!!" }
|
||||
# };
|
||||
AlignArrayOfStructures: Left
|
||||
|
||||
# Align assignments on consecutive lines. This will result in formattings like:
|
||||
#
|
||||
# int a = 1;
|
||||
# int somelongname = 2;
|
||||
# double c = 3;
|
||||
#
|
||||
# int d = 3;
|
||||
# /* A comment. */
|
||||
# double e = 4;
|
||||
AlignConsecutiveAssignments: Consecutive
|
||||
AlignConsecutiveBitFields: Consecutive
|
||||
AlignConsecutiveDeclarations: Consecutive
|
||||
AlignConsecutiveMacros: Consecutive
|
||||
|
||||
# Align escaped newlines as far left as possible.
|
||||
# #define A \
|
||||
# int aaaa; \
|
||||
# int b; \
|
||||
# int dddddddddd;
|
||||
AlignEscapedNewlines: Left
|
||||
|
||||
# Horizontally align operands of binary and ternary expressions.
|
||||
# Specifically, this aligns operands of a single expression that needs to be
|
||||
# split over multiple lines, e.g.:
|
||||
#
|
||||
# int aaa = bbbbbbbbbbbbbbb +
|
||||
# ccccccccccccccc;
|
||||
AlignOperands: Align
|
||||
|
||||
# true: false:
|
||||
# int a; // My comment a vs. int a; // My comment a
|
||||
# int b = 2; // comment b int b = 2; // comment about b
|
||||
AlignTrailingComments: true
|
||||
|
||||
# If the function declaration doesn’t fit on a line, allow putting all
|
||||
# parameters of a function declaration onto the next line even if
|
||||
# BinPackParameters is false.
|
||||
#
|
||||
# true:
|
||||
# void myFunction(
|
||||
# int a, int b, int c, int d, int e);
|
||||
#
|
||||
# false:
|
||||
# void myFunction(int a,
|
||||
# int b,
|
||||
# int c,
|
||||
# int d,
|
||||
# int e);
|
||||
AllowAllParametersOfDeclarationOnNextLine: false
|
||||
AllowShortBlocksOnASingleLine: Never # "while (true) { continue; }" can be put on a single line.
|
||||
|
||||
# If true, short case labels will be contracted to a single line.
|
||||
#
|
||||
# true: false:
|
||||
# switch (a) { vs. switch (a) {
|
||||
# case 1: x = 1; break; case 1:
|
||||
# case 2: return; x = 1;
|
||||
# } break;
|
||||
# case 2:
|
||||
# return;
|
||||
# }
|
||||
AllowShortCaseLabelsOnASingleLine: true
|
||||
AllowShortEnumsOnASingleLine: true # enum { A, B } myEnum;
|
||||
|
||||
# Only merge functions defined inside a class. Implies “empty”.
|
||||
#
|
||||
# class Foo {
|
||||
# void f() { foo(); }
|
||||
# };
|
||||
# void f() {
|
||||
# foo();
|
||||
# }
|
||||
# void f() {}
|
||||
AllowShortFunctionsOnASingleLine: Inline
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
|
||||
# Only merge empty lambdas.
|
||||
#
|
||||
# auto lambda = [](int a) {}
|
||||
# auto lambda2 = [](int a) {
|
||||
# return a;
|
||||
# };
|
||||
AllowShortLambdasOnASingleLine: Empty
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
|
||||
# true: false:
|
||||
# aaaa = vs. aaaa = "bbbb"
|
||||
# "bbbb" "cccc";
|
||||
# "cccc";
|
||||
AlwaysBreakBeforeMultilineStrings: true
|
||||
|
||||
# Force break after template declaration only when the following declaration
|
||||
# spans multiple lines.
|
||||
#
|
||||
# template <typename T> T foo() {
|
||||
# }
|
||||
# template <typename T>
|
||||
# T foo(int aaaaaaaaaaaaaaaaaaaaa,
|
||||
# int bbbbbbbbbbbbbbbbbbbbb) {
|
||||
# }
|
||||
AlwaysBreakTemplateDeclarations: MultiLine
|
||||
|
||||
# If false, a function call’s arguments will either be all on the same line or
|
||||
# will have one line each.
|
||||
#
|
||||
# true:
|
||||
# void f() {
|
||||
# f(aaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaa,
|
||||
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
|
||||
# }
|
||||
#
|
||||
# false:
|
||||
# void f() {
|
||||
# f(aaaaaaaaaaaaaaaaaaaa,
|
||||
# aaaaaaaaaaaaaaaaaaaa,
|
||||
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
|
||||
# }
|
||||
BinPackArguments: false
|
||||
BinPackParameters: false # As BinPackArguments but for function definition parameters
|
||||
|
||||
# Add space after the : only (space may be added before if needed for
|
||||
# AlignConsecutiveBitFields).
|
||||
#
|
||||
# unsigned bf: 2;
|
||||
BitFieldColonSpacing: After
|
||||
|
||||
# LooooooooooongType loooooooooooooooooooooongVariable =
|
||||
# someLooooooooooooooooongFunction();
|
||||
#
|
||||
# bool value = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
|
||||
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ==
|
||||
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &&
|
||||
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa >
|
||||
# ccccccccccccccccccccccccccccccccccccccccc;
|
||||
BreakBeforeBinaryOperators: None
|
||||
|
||||
# Always attach braces to surrounding context, but break before braces on
|
||||
# function, namespace and class definitions.
|
||||
BreakBeforeBraces: Linux
|
||||
|
||||
# true:
|
||||
# template<typename T>
|
||||
# concept ...
|
||||
#
|
||||
# false:
|
||||
# template<typename T> concept ...
|
||||
BreakBeforeConceptDeclarations: false
|
||||
|
||||
# true:
|
||||
# veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongDescription
|
||||
# ? firstValue
|
||||
# : SecondValueVeryVeryVeryVeryLong;
|
||||
#
|
||||
# false:
|
||||
# veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongDescription ?
|
||||
# firstValue :
|
||||
# SecondValueVeryVeryVeryVeryLong;
|
||||
BreakBeforeTernaryOperators: true
|
||||
|
||||
# Break constructor initializers before the colon and commas, and align the
|
||||
# commas with the colon.
|
||||
#
|
||||
# Constructor()
|
||||
# : initializer1()
|
||||
# , initializer2()
|
||||
BreakConstructorInitializers: BeforeComma
|
||||
|
||||
# Break inheritance list only after the commas.
|
||||
#
|
||||
# class Foo : Base1,
|
||||
# Base2
|
||||
# {};
|
||||
BreakInheritanceList: AfterComma
|
||||
|
||||
# true:
|
||||
# const char* x = "veryVeryVeryVeryVeryVe"
|
||||
# "ryVeryVeryVeryVeryVery"
|
||||
# "VeryLongString";
|
||||
BreakStringLiterals: true
|
||||
ColumnLimit: 100
|
||||
|
||||
# false:
|
||||
# namespace Foo {
|
||||
# namespace Bar {
|
||||
# }
|
||||
# }
|
||||
CompactNamespaces: false
|
||||
|
||||
# true: false:
|
||||
# vector<int> x{1, 2, 3, 4}; vs. vector<int> x{ 1, 2, 3, 4 };
|
||||
# vector<T> x{{}, {}, {}, {}}; vector<T> x{ {}, {}, {}, {} };
|
||||
# f(MyMap[{composite, key}]); f(MyMap[{ composite, key }]);
|
||||
# new int[3]{1, 2, 3}; new int[3]{ 1, 2, 3 };
|
||||
Cpp11BracedListStyle: true
|
||||
|
||||
# Analyze the formatted file for the most used line ending (\r\n or \n). UseCRLF
|
||||
# is only used as a fallback if none can be derived.
|
||||
DeriveLineEnding: true
|
||||
DerivePointerAlignment: true # As per DeriveLineEnding except for pointers and references
|
||||
|
||||
# Add empty line only when access modifier starts a new logical block. Logical
|
||||
# block is a group of one or more member fields or functions.
|
||||
#
|
||||
# struct foo {
|
||||
# private:
|
||||
# int i;
|
||||
#
|
||||
# protected:
|
||||
# int j;
|
||||
# /* comment */
|
||||
# public:
|
||||
# foo() {}
|
||||
#
|
||||
# private:
|
||||
# protected:
|
||||
# };
|
||||
EmptyLineBeforeAccessModifier: LogicalBlock
|
||||
|
||||
# true: false:
|
||||
# namespace a { vs. namespace a {
|
||||
# foo(); foo();
|
||||
# bar(); bar();
|
||||
# } // namespace a }
|
||||
FixNamespaceComments: true
|
||||
|
||||
# false: true:
|
||||
# class C { vs. class C {
|
||||
# class D { class D {
|
||||
# void bar(); void bar();
|
||||
# protected: protected:
|
||||
# D(); D();
|
||||
# }; };
|
||||
# public: public:
|
||||
# C(); C();
|
||||
# }; };
|
||||
# void foo() { void foo() {
|
||||
# return 1; return 1;
|
||||
# } }
|
||||
IndentAccessModifiers: false
|
||||
|
||||
# false: true:
|
||||
# switch (fool) { vs. switch (fool) {
|
||||
# case 1: { case 1:
|
||||
# bar(); {
|
||||
# } break; bar();
|
||||
# default: { }
|
||||
# plop(); break;
|
||||
# } default:
|
||||
# } {
|
||||
# plop();
|
||||
# }
|
||||
# }
|
||||
IndentCaseBlocks: false
|
||||
|
||||
# false: true:
|
||||
# switch (fool) { vs. switch (fool) {
|
||||
# case 1: case 1:
|
||||
# bar(); bar();
|
||||
# break; break;
|
||||
# default: default:
|
||||
# plop(); plop();
|
||||
# } }
|
||||
IndentCaseLabels: true
|
||||
|
||||
# extern "C" {
|
||||
# void foo();
|
||||
# }
|
||||
IndentExternBlock: NoIndent
|
||||
|
||||
# Indents directives before the hash.
|
||||
#
|
||||
# #if FOO
|
||||
# #if BAR
|
||||
# #include <foo>
|
||||
# #endif
|
||||
# #endif
|
||||
IndentPPDirectives: BeforeHash
|
||||
|
||||
# true: false:
|
||||
# if (foo) { vs. if (foo) {
|
||||
# bar();
|
||||
# bar(); }
|
||||
# }
|
||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||
|
||||
# The maximum number of consecutive empty lines to keep.
|
||||
#
|
||||
# MaxEmptyLinesToKeep: 1 vs. MaxEmptyLinesToKeep: 0
|
||||
# int f() { int f() {
|
||||
# int = 1; int i = 1;
|
||||
# i = foo();
|
||||
# i = foo(); return i;
|
||||
# }
|
||||
# return i;
|
||||
# }
|
||||
MaxEmptyLinesToKeep: 1
|
||||
NamespaceIndentation: None
|
||||
|
||||
# Put all constructor initializers on the current line if they fit. Otherwise,
|
||||
# put each one on its own line.
|
||||
#
|
||||
# Constructor() : a(), b()
|
||||
#
|
||||
# Constructor()
|
||||
# : aaaaaaaaaaaaaaaaaaaa(),
|
||||
# bbbbbbbbbbbbbbbbbbbb(),
|
||||
# ddddddddddddd()
|
||||
PackConstructorInitializers: CurrentLine
|
||||
PointerAlignment: Right
|
||||
|
||||
# false:
|
||||
# // veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of information
|
||||
# /* second veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of information */
|
||||
#
|
||||
# true:
|
||||
# // veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of
|
||||
# // information
|
||||
# /* second veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of
|
||||
# * information */
|
||||
ReflowComments: true
|
||||
|
||||
# false: true:
|
||||
#
|
||||
# if (isa<FunctionDecl>(D)) { vs. if (isa<FunctionDecl>(D))
|
||||
# handleFunctionDecl(D); handleFunctionDecl(D);
|
||||
# } else if (isa<VarDecl>(D)) { else if (isa<VarDecl>(D))
|
||||
# handleVarDecl(D); handleVarDecl(D);
|
||||
# }
|
||||
#
|
||||
# if (isa<VarDecl>(D)) { vs. if (isa<VarDecl>(D)) {
|
||||
# for (auto *A : D.attrs()) { for (auto *A : D.attrs())
|
||||
# if (shouldProcessAttr(A)) { if (shouldProcessAttr(A))
|
||||
# handleAttr(A); handleAttr(A);
|
||||
# } }
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# if (isa<FunctionDecl>(D)) { vs. if (isa<FunctionDecl>(D))
|
||||
# for (auto *A : D.attrs()) { for (auto *A : D.attrs())
|
||||
# handleAttr(A); handleAttr(A);
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# if (auto *D = (T)(D)) { vs. if (auto *D = (T)(D)) {
|
||||
# if (shouldProcess(D)) { if (shouldProcess(D))
|
||||
# handleVarDecl(D); handleVarDecl(D);
|
||||
# } else { else
|
||||
# markAsIgnored(D); markAsIgnored(D);
|
||||
# } }
|
||||
# }
|
||||
#
|
||||
# if (a) { vs. if (a)
|
||||
# b(); b();
|
||||
# } else { else if (c)
|
||||
# if (c) { d();
|
||||
# d(); else
|
||||
# } else { e();
|
||||
# e();
|
||||
# }
|
||||
# }
|
||||
RemoveBracesLLVM: true
|
||||
|
||||
# Never v.s. Always
|
||||
# #include <cstring> #include <cstring>
|
||||
# struct Foo {
|
||||
# int a, b, c; struct Foo {
|
||||
# }; int a, b, c;
|
||||
# namespace Ns { };
|
||||
# class Bar {
|
||||
# public: namespace Ns {
|
||||
# struct Foobar { class Bar {
|
||||
# int a; public:
|
||||
# int b; struct Foobar {
|
||||
# }; int a;
|
||||
# private: int b;
|
||||
# int t; };
|
||||
# int method1() {
|
||||
# // ... private:
|
||||
# } int t;
|
||||
# enum List {
|
||||
# ITEM1, int method1() {
|
||||
# ITEM2 // ...
|
||||
# }; }
|
||||
# template<typename T>
|
||||
# int method2(T x) { enum List {
|
||||
# // ... ITEM1,
|
||||
# } ITEM2
|
||||
# int i, j, k; };
|
||||
# int method3(int par) {
|
||||
# // ... template<typename T>
|
||||
# } int method2(T x) {
|
||||
# }; // ...
|
||||
# class C {}; }
|
||||
# }
|
||||
# int i, j, k;
|
||||
#
|
||||
# int method3(int par) {
|
||||
# // ...
|
||||
# }
|
||||
# };
|
||||
#
|
||||
# class C {};
|
||||
# }
|
||||
SeparateDefinitionBlocks: Always
|
||||
|
||||
# true: false:
|
||||
# int a = 5; vs. int a= 5;
|
||||
# a += 42; a+= 42;
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
|
||||
# Put a space before opening parentheses only after control statement keywords
|
||||
# (for/if/while...).
|
||||
#
|
||||
# void f() {
|
||||
# if (true) {
|
||||
# f();
|
||||
# }
|
||||
# }
|
||||
SpaceBeforeParens: ControlStatements
|
||||
SpacesBeforeTrailingComments: 1
|
||||
|
||||
# static_cast<int>(arg);
|
||||
# std::function<void(int)> fct;
|
||||
SpacesInAngles: Never
|
||||
|
||||
Standard: Auto
|
||||
|
||||
# Macros which are ignored in front of a statement, as if they were an
|
||||
# attribute. So that they are not parsed as identifier, for example for Qts
|
||||
# emit.
|
||||
# unsigned char data = 'x';
|
||||
# emit signal(data); // This is parsed as variable declaration.
|
||||
#
|
||||
# vs.
|
||||
#
|
||||
# unsigned char data = 'x';
|
||||
# emit signal(data); // Now it's fine again.
|
||||
StatementAttributeLikeMacros: [emit]
|
||||
---
|
||||
|
@ -119,35 +119,32 @@ for llvm_version in ${llvm_version_list[@]}; do
|
||||
elif [[ "${llvm_version}" == "12.0.1" ]]; then
|
||||
llvm_sha256=6b3cc55d3ef413be79785c4dc02828ab3bd6b887872b143e3091692fc6acefe7
|
||||
llvm_exe_sha256=329bba976c0cef38863129233a4b0939688eae971c7a606d41dd0e5a53d53455
|
||||
llvm_download_label=clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu-16.04
|
||||
llvm_download_label=clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu-16.04
|
||||
elif [[ "${llvm_version}" == "11.1.0" ]]; then
|
||||
llvm_sha256=c691a558967fb7709fb81e0ed80d1f775f4502810236aa968b4406526b43bee1
|
||||
llvm_exe_sha256=656bfde194276cee81dc8a7a08858313c5b5bdcfa18ac6cd6116297af2f65148
|
||||
llvm_download_label=clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu-16.04
|
||||
llvm_download_label=clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu-16.04
|
||||
fi
|
||||
|
||||
llvm_download_file=${downloads_dir}/${llvm_download_label}.tar.xz
|
||||
llvm_label=llvm_linux64_${llvm_version}
|
||||
llvm_dir=${tools_dir}/${llvm_label}
|
||||
llvm_exe=${llvm_dir}/bin/clang
|
||||
|
||||
if [[ ! -f "${llvm_exe}" ]]; then
|
||||
DownloadFile "https://github.com/llvm/llvm-project/releases/download/llvmorg-${llvm_version}/${llvm_download_label}.tar.xz" "${llvm_download_file}" || exit
|
||||
FileSHA256Check "${llvm_download_file}" "${llvm_sha256}" || exit
|
||||
mkdir --parents "${llvm_dir}" && tar xf "${llvm_download_file}" --skip-old-files --directory="${llvm_dir}" || exit
|
||||
|
||||
if [[ "${llvm_version}" == "12.0.1" ]]; then
|
||||
# NOTE: There was a distribution bug in v12.0.1 where the folder was misnamed
|
||||
mv ${llvm_dir}/clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu-/* ${llvm_dir} || exit
|
||||
rm --recursive ${llvm_dir}/clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu || exit
|
||||
else
|
||||
mv ${llvm_dir}/${llvm_download_label}/* ${llvm_dir} || exit
|
||||
if [[ "${llvm_version}" == "12.0.1" ]]; then
|
||||
# NOTE: There was a distribution bug in v12.0.1 where the folder was misnamed
|
||||
mv ${llvm_dir}/clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu-/* ${llvm_dir} || exit
|
||||
rm --recursive ${llvm_dir}/clang+llvm-${llvm_version}-x86_64-linux-gnu-ubuntu- || exit
|
||||
else
|
||||
mv ${llvm_dir}/${llvm_download_label}/* ${llvm_dir} || exit
|
||||
rm --recursive ${llvm_dir}/${llvm_download_label} || exit
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
FileSHA256Check "${llvm_exe}" "${llvm_exe_sha256}" || exit
|
||||
|
||||
cd "${llvm_dir}/bin" && find . -type f,l -exec ln --force --symbolic --relative "{}" "${bin_dir}/{}-${llvm_version}" ';' && cd "${root_dir}"
|
||||
done
|
||||
|
||||
@ -199,7 +196,7 @@ if [[ ! -f "${neovide_exe}" ]]; then
|
||||
DownloadFile "https://github.com/neovide/neovide/releases/download/${neovide_version}/neovide.tar.gz" ${neovide_download_file} || exit
|
||||
FileSHA256Check ${neovide_download_file} ${neovide_sha256} || exit
|
||||
|
||||
mkdir --parents "${cmake_dir}" && tar xf ${neovide_download_file} --skip-old-files --directory=${neovide_dir}/neovide-tmp || exit
|
||||
mkdir --parents ${neovide_dir}/neovide-tmp && tar xf ${neovide_download_file} --skip-old-files --directory=${neovide_dir}/neovide-tmp || exit
|
||||
mv ${neovide_dir}/neovide-tmp/target/release/neovide "${neovide_exe}" || exit
|
||||
rm -rf ${neovide_dir}/neovide-tmp
|
||||
fi
|
||||
@ -258,6 +255,21 @@ fi
|
||||
FileSHA256Check "${ripgrep_exe}" "${ripgrep_exe_sha256}" || exit
|
||||
ln --force --symbolic --relative "${ripgrep_exe}" "${bin_dir}"
|
||||
|
||||
# wezterm
|
||||
# ------------------------------------------------------------------------------
|
||||
wezterm_sha256=4de3cd65b7d7ae0c72a691597bd3def57c65f07fe4a7c98b447b8a9dc4d0adf0
|
||||
wezterm_version=20220624-141144-bd1b7c5d
|
||||
|
||||
wezterm_label=wezterm_linux64_${wezterm_version}
|
||||
wezterm_download_label=WezTerm-${wezterm_version}-Ubuntu18.04
|
||||
wezterm_exe=${tools_dir}/${wezterm_label}.AppImage
|
||||
|
||||
DownloadFile "https://github.com/wez/wezterm/releases/download/${wezterm_version}/${wezterm_download_label}.AppImage" "${wezterm_exe}" || exit
|
||||
FileSHA256Check "${wezterm_exe}" "${wezterm_sha256}" || exit
|
||||
|
||||
chmod +x "${wezterm_exe}"
|
||||
cp --force ${installer_dir}/os_wezterm.lua ~/.wezterm.lua
|
||||
|
||||
# Ctags
|
||||
# ------------------------------------------------------------------------------
|
||||
rm --force ${bin_dir}/ctags_cpp.sh
|
||||
|
@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
REM Win Helpers - Version 3
|
||||
REM Win Helpers - Version 4
|
||||
call %*
|
||||
goto exit
|
||||
|
||||
@ -40,6 +40,7 @@ exit /B 0
|
||||
|
||||
:Unzip
|
||||
REM call win_helpers.bat :Unzip <path/to/7z.exe> <zip_file> <dest>
|
||||
REM Overwrite mode: "-aos" Skip extracting of existing files
|
||||
REM ------------------------------------------------------------------------------------------------
|
||||
set zip7_exe=%~1
|
||||
set zip_file=%~2
|
||||
@ -55,13 +56,9 @@ if not exist "!zip_file!" (
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
if exist !dest! (
|
||||
echo - [Unzip/Cached] !zip_file! to !dest!
|
||||
) else (
|
||||
echo - [Unzip] !zip_file! to !dest!
|
||||
call !zip7_dir!\7z.exe x -y -spe -o!dest! !zip_file!
|
||||
)
|
||||
exit /B 0
|
||||
echo - [Unzip] !zip_file! to !dest!
|
||||
call !zip7_dir!\7z.exe x -y -aos -spe -o!dest! !zip_file!
|
||||
exit /B %ERRORLEVEL%
|
||||
|
||||
:FileHashCheck
|
||||
REM call win_helpers.bat :FileHashCheck [sha256|md5|...] <file> <hash>
|
||||
@ -90,19 +87,19 @@ if /I "!expected!" neq "!actual!" (
|
||||
echo - [FileHashCheck] !algorithm! OK [file=!file! hash=!expected!]
|
||||
exit /B 0
|
||||
|
||||
:Move
|
||||
REM call win_helpers.bat :Move <src> <dest>
|
||||
:MoveDir
|
||||
REM call win_helpers.bat :MoveDir <src> <dest>
|
||||
REM ------------------------------------------------------------------------------------------------
|
||||
set src=%~1
|
||||
set dest=%~2
|
||||
|
||||
if not exist "!src!" (
|
||||
echo - [Move] File/path does not exist [file=%src%]
|
||||
echo - [MoveDir] Directory does not exist [dir=%src%]
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
echo - [Move] Move "!src!" to "!dest!"
|
||||
robocopy "!src!" "!dest!" /E /MOVE /NP /NJS /NJS /NS /NC /NFL /NDL
|
||||
echo - [MoveDir] "!src!" to "!dest!"
|
||||
robocopy "!src!" "!dest!" /E /MOVE /MT /NP /NJS /NS /NC /NFL /NDL
|
||||
exit /B 0
|
||||
|
||||
:MakeBatchShortcut
|
||||
|
@ -132,7 +132,7 @@ if not exist "!wezterm_exe!" (
|
||||
call win_helpers.bat :DownloadFile https://github.com/wez/wezterm/releases/download/!wezterm_version!/WezTerm-windows-!wezterm_version!.zip "!wezterm_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!wezterm_zip!" "!wezterm_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!wezterm_zip!" "!wezterm_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!wezterm_dir!\wezterm-windows-!wezterm_version!" "!wezterm_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!wezterm_dir!\wezterm-windows-!wezterm_version!" "!wezterm_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!wezterm_exe!" "!wezterm_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -178,7 +178,7 @@ if not exist "!cmake_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/Kitware/CMake/releases/download/v!cmake_version!/cmake-!cmake_version!-windows-x86_64.zip" "!cmake_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!cmake_zip!" "!cmake_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!cmake_zip!" "!cmake_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!cmake_dir!/cmake-!cmake_version!-windows-x86_64" "!cmake_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!cmake_dir!/cmake-!cmake_version!-windows-x86_64" "!cmake_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!cmake_exe!" "!cmake_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -200,7 +200,7 @@ if not exist "!ctags_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/universal-ctags/ctags-win32/releases/download/!ctags_version!/ctags-!ctags_version!-x64.zip" "!ctags_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!ctags_zip!" "!ctags_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!ctags_zip!" "!ctags_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!ctags_dir!/ctags-!ctags_version!-windows-x86_64" "!ctags_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!ctags_dir!/ctags-!ctags_version!-windows-x86_64" "!ctags_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
call win_helpers.bat :FileHashCheck sha256 "!ctags_exe!" "!ctags_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MakeBatchShortcut "ctags" "!ctags_exe!" "!bin_dir!" || exit /B %ERRORLEVEL%
|
||||
@ -303,7 +303,7 @@ if not exist "!mingw_exe!" (
|
||||
call win_helpers.bat :DownloadFile \"https://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/!mingw_version!/threads-posix/seh/x86_64-!mingw_version!-release-posix-seh-rt_v6-rev0.7z\" !mingw_zip! || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 !mingw_zip! !mingw_sha256! || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" !mingw_zip! !mingw_dir! || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move !mingw_dir!\mingw64 !mingw_dir! || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir !mingw_dir!\mingw64 !mingw_dir! || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!mingw_exe!" "!mingw_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -348,7 +348,7 @@ if not exist "!nodejs_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://nodejs.org/dist/v!nodejs_version!/node-v!nodejs_version!-win-x64.7z" "!nodejs_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!nodejs_zip!" "!nodejs_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!nodejs_zip!" "!nodejs_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!nodejs_dir!\node-v!nodejs_version!-win-x64" "!nodejs_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!nodejs_dir!\node-v!nodejs_version!-win-x64" "!nodejs_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!nodejs_exe!" "!nodejs_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -359,34 +359,36 @@ echo set PATH=!nodejs_dir!;%%PATH%%>> "!tmp_terminal_script!"
|
||||
REM ----------------------------------------------------------------------------
|
||||
REM Python
|
||||
REM ----------------------------------------------------------------------------
|
||||
set python_sha256=93cc3db75dffb4d56b9f64af43294f130f2c222a66de7a1325d0ce8f1ed62e26
|
||||
set python_exe_sha256=9042daa88b2d3879a51bfabc2d90d4a56da05ebf184b6492a22a46fdc1c936a4
|
||||
set python_version=3.9.0.2dot
|
||||
set python_version_nodot=3902
|
||||
set python_version_dot=3.9.0
|
||||
REM We use the shared installation of python since pynvim/greenlet does not work
|
||||
REM with a static python distribution.
|
||||
set python_sha256=39EE2B12AAB9E07E2B3CE698331160C55C75CD4AFFEE028F6AE78020711D503C
|
||||
set python_exe_sha256=8677FBA3EFC27F51EA84C528B24E5824B580CE59CD5714C47073FF2459637687
|
||||
|
||||
set python_label=Winpython64_win64_!python_version_nodot!
|
||||
set python_zip=!downloads_dir!\!python_label!.zip
|
||||
set python_date=20220630
|
||||
set python_version=3.9.13
|
||||
set python_version_and_date=!python_version!+!python_date!
|
||||
|
||||
set python_download_ext=tar.gz
|
||||
set python_download_label=cpython-!python_version_and_date!-x86_64-pc-windows-msvc-shared-install_only
|
||||
set python_download_file=!downloads_dir!\!python_download_label!.!python_download_ext!
|
||||
|
||||
set python_label=cpython_win64_!python_version_and_date!
|
||||
set python_dir=!tools_dir!\!python_label!
|
||||
set python_bin_dir=!python_dir!\python-!python_version_dot!.amd64\
|
||||
set python_exe=!python_bin_dir!\python.exe
|
||||
set python_exe=!python_dir!\python.exe
|
||||
|
||||
if not exist "!python_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/winpython/winpython/releases/download/3.0.20201028/Winpython64-!python_version!.exe" "!python_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!python_zip!" "!python_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!python_zip!" "!python_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!python_dir!\WPy64-!python_version_nodot!" "!python_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :DownloadFile "https://github.com/indygreg/python-build-standalone/releases/download/!python_date!/!python_download_label!.!python_download_ext!" "!python_download_file!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!python_download_file!" "!python_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!python_download_file!" "!downloads_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!downloads_dir!\!python_download_label!.tar" "!python_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!python_dir!\python" "!python_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!python_exe!" "!python_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
|
||||
set python_bin_dir=!python_dir!\python-!python_version_dot!.amd64
|
||||
set python_scripts_bin_dir=!python_bin_dir!\Scripts
|
||||
|
||||
REM Terminal
|
||||
echo set PATH=!python_bin_dir!;%%PATH%%>> "!tmp_terminal_script!"
|
||||
echo set PATH=!python_scripts_bin_dir!;%%PATH%%>> "!tmp_terminal_script!"
|
||||
echo set PYTHONHOME=!python_bin_dir!>> "!tmp_terminal_script!"
|
||||
echo set PYTHONHOME=!python_dir!>> "!tmp_terminal_script!"
|
||||
echo set PATH=!python_dir!;%%PATH%%>> "!tmp_terminal_script!"
|
||||
|
||||
REM ----------------------------------------------------------------------------
|
||||
REM RenderDoc
|
||||
@ -404,7 +406,7 @@ if not exist "!renderdoc_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://renderdoc.org/stable/!renderdoc_version!/RenderDoc_!renderdoc_version!_64.zip" "!renderdoc_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!renderdoc_zip!" "!renderdoc_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!renderdoc_zip!" "!renderdoc_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!renderdoc_dir!\RenderDoc_!renderdoc_version!_64" "!renderdoc_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!renderdoc_dir!\RenderDoc_!renderdoc_version!_64" "!renderdoc_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!renderdoc_exe!" "!renderdoc_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -425,7 +427,7 @@ if not exist "!zeal_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/zealdocs/zeal/releases/download/v!zeal_version!/zeal-portable-!zeal_version!-windows-x64.7z" "!zeal_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!zeal_zip!" "!zeal_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!zeal_zip!" "!zeal_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!zeal_dir!\zeal-portable-!zeal_version!-windows-x64" "!zeal_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!zeal_dir!\zeal-portable-!zeal_version!-windows-x64" "!zeal_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!zeal_exe!" "!zeal_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -437,16 +439,19 @@ set zig_sha256=443da53387d6ae8ba6bac4b3b90e9fef4ecbe545e1c5fa3a89485c36f5c0e3a2
|
||||
set zig_exe_sha256=63c2f819cfdb1a35cb954791fc0aa48910a42065a5e1c6ff89ee16775c75a112
|
||||
set zig_version=0.9.1
|
||||
|
||||
set zig_download_ext=zip
|
||||
set zig_download_label=zig-windows-x86_64-!zig_version!
|
||||
set zig_download_file=!downloads_dir!\!zig_download_label!.!zig_download_ext!
|
||||
|
||||
set zig_label=zig_win64_!zig_version!
|
||||
set zig_zip=!downloads_dir!\!zig_label!.zip
|
||||
set zig_dir=!tools_dir!\!zig_label!
|
||||
set zig_exe=!zig_dir!\zig.exe
|
||||
|
||||
if not exist "!zig_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://ziglang.org/download/!zig_version!/zig-windows-x86_64-!zig_version!.zip" "!zig_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!zig_zip!" "!zig_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!zig_zip!" "!zig_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!zig_dir!\zig-windows-x86_64-!zig_version!" "!zig_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :DownloadFile "https://ziglang.org/download/!zig_version!/!zig_download_label!.!zig_download_ext!" "!zig_download_file!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!zig_download_file!" "!zig_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!zig_download_file!" "!zig_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!zig_dir!\zig-windows-x86_64-!zig_version!" "!zig_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!zig_exe!" "!zig_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -462,7 +467,7 @@ set msvc_sdk_version=22621
|
||||
set msvc_dir=!tools_dir!\msvc_win64_!msvc_version!_win10_sdk_!msvc_sdk_version!
|
||||
if not exist "!msvc_dir!" (
|
||||
call "!python_exe!" !installer_dir!\win_portable-msvc.py --accept-license --msvc-version !msvc_version! --sdk-version !msvc_sdk_version! || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "msvc" "!msvc_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "msvc" "!msvc_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
REM Put the compiler into the path temporarily for compiling some programs on
|
||||
@ -634,7 +639,7 @@ if not exist "!nvim_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/neovim/neovim/releases/download/v!nvim_version!/nvim-win64.zip" "!nvim_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!nvim_zip!" "!nvim_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!nvim_zip!" "!nvim_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!nvim_dir!\nvim-win64" "!nvim_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!nvim_dir!\nvim-win64" "!nvim_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!nvim_exe!" "!nvim_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -650,13 +655,14 @@ set neovide_version=0.9.0
|
||||
|
||||
set neovide_label=neovide_win64_!neovide_version!
|
||||
set neovide_zip=!downloads_dir!\!neovide_label!.zip
|
||||
set neovide_dir=!tools_dir!\!neovide_label!
|
||||
set neovide_exe=!neovide_dir!\neovide.exe
|
||||
set neovide_dir=!tools_dir!\
|
||||
set neovide_exe=!neovide_dir!\!neovide_label!.exe
|
||||
|
||||
if not exist "!neovide_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/neovide/neovide/releases/download/!neovide_version!/neovide-windows.zip" "!neovide_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!neovide_zip!" "!neovide_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!neovide_zip!" "!neovide_dir!" || exit /B %ERRORLEVEL%
|
||||
move /Y "!neovide_dir!\neovide.exe" "!neovide_exe!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!neovide_exe!" "!neovide_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -676,8 +682,8 @@ if not exist "!vim_plug_dir!" mkdir "!vim_plug_dir!"
|
||||
call win_helpers.bat :DownloadFile "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" "!vim_plug!" || exit /B %ERRORLEVEL%
|
||||
|
||||
REM Install Python NVIM module, for :py3 support
|
||||
set PYTHONHOME=!python_bin_dir!
|
||||
!python_bin_dir!\Scripts\pip.exe install pynvim cmake-language-server
|
||||
set PYTHONHOME=!python_dir!
|
||||
!python_dir!\python.exe -m pip install pynvim cmake-language-server
|
||||
|
||||
REM ----------------------------------------------------------------------------
|
||||
REM ImHex
|
||||
@ -715,7 +721,7 @@ if not exist "!keypirinha_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/Keypirinha/Keypirinha/releases/download/v!keypirinha_version!/keypirinha-!keypirinha_version!-x64-portable.7z" "!keypirinha_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!keypirinha_zip!" "!keypirinha_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!keypirinha_zip!" "!keypirinha_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!keypirinha_dir!\keypirinha" "!keypirinha_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!keypirinha_dir!\keypirinha" "!keypirinha_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!keypirinha_exe!" "!keypirinha_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -800,7 +806,7 @@ if not exist "!rg_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/BurntSushi/ripgrep/releases/download/!rg_version!/ripgrep-!rg_version!-x86_64-pc-windows-msvc.zip" "!rg_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!rg_zip!" "!rg_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!rg_zip!" "!rg_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!rg_dir!\ripgrep-!rg_version!-x86_64-pc-windows-msvc" "!rg_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!rg_dir!\ripgrep-!rg_version!-x86_64-pc-windows-msvc" "!rg_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!rg_exe!" "!rg_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -824,7 +830,7 @@ if not exist "!fd_exe!" (
|
||||
call win_helpers.bat :DownloadFile "https://github.com/sharkdp/fd/releases/download/v!fd_version!/fd-v!fd_version!-x86_64-pc-windows-msvc.zip" "!fd_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :FileHashCheck sha256 "!fd_zip!" "!fd_sha256!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!fd_zip!" "!fd_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!fd_dir!\fd-v!fd_version!-x86_64-pc-windows-msvc" "!fd_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :MoveDir "!fd_dir!\fd-v!fd_version!-x86_64-pc-windows-msvc" "!fd_dir!" || exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!fd_exe!" "!fd_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
@ -858,7 +864,7 @@ if not exist "!geth_exe!" (
|
||||
gpg --import "!geth_gpg_key!" || exit /B %ERRORLEVEL%
|
||||
gpg --verify "!geth_gpg_sig!" "!geth_zip!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Unzip "!zip7_exe!" "!geth_zip!" "!geth_dir!" || exit /B %ERRORLEVEL%
|
||||
call win_helpers.bat :Move "!geth_dir!\geth-windows-amd64-!geth_version!" "!geth_dir!"
|
||||
call win_helpers.bat :MoveDir "!geth_dir!\geth-windows-amd64-!geth_version!" "!geth_dir!"
|
||||
)
|
||||
|
||||
call win_helpers.bat :FileHashCheck sha256 "!geth_exe!" "!geth_exe_sha256!" || exit /B %ERRORLEVEL%
|
||||
|
Loading…
Reference in New Issue
Block a user