Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build下のスクリプトをtoolsに動かしてTypeScriptにする #2361

Merged
merged 12 commits into from
Nov 23, 2024
Merged
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ jobs:
- name: Define Code Signing Envs
if: startsWith(matrix.os, 'windows-') && github.event.inputs.code_signing == 'true'
run: |
bash build/codesign_setup.bash
bash tools/codesign_setup.bash
THUMBPRINT="$(head -n 1 $THUMBPRINT_PATH)"
SIGNTOOL_PATH="$(head -n 1 $SIGNTOOL_PATH_PATH)"
echo "::add-mask::$THUMBPRINT"
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
- name: Reset Code Signing Envs
if: startsWith(matrix.os, 'windows-') && github.event.inputs.code_signing == 'true'
run: |
bash build/codesign_cleanup.bash
bash tools/codesign_cleanup.bash
echo 'WIN_CERTIFICATE_SHA1=' >> $GITHUB_ENV
echo 'WIN_SIGNING_HASH_ALGORITHMS=' >> $GITHUB_ENV
echo 'SIGNTOOL_PATH=' >> $GITHUB_ENV
Expand Down Expand Up @@ -390,7 +390,7 @@ jobs:
- name: Define Code Signing Envs
if: startsWith(matrix.os, 'windows-') && github.event.inputs.code_signing == 'true'
run: |
bash build/codesign_setup.bash
bash tools/codesign_setup.bash
THUMBPRINT="$(head -n 1 $THUMBPRINT_PATH)"
SIGNTOOL_PATH="$(head -n 1 $SIGNTOOL_PATH_PATH)"
echo "::add-mask::$THUMBPRINT"
Expand Down Expand Up @@ -425,7 +425,7 @@ jobs:
- name: Reset Code Signing Envs
if: startsWith(matrix.os, 'windows-') && github.event.inputs.code_signing == 'true'
run: |
bash build/codesign_cleanup.bash
bash tools/codesign_cleanup.bash
echo 'WIN_CERTIFICATE_SHA1=' >> $GITHUB_ENV
echo 'WIN_SIGNING_HASH_ALGORITHMS=' >> $GITHUB_ENV
echo 'SIGNTOOL_PATH=' >> $GITHUB_ENV
Expand Down
89 changes: 0 additions & 89 deletions build/download7z.js

This file was deleted.

100 changes: 0 additions & 100 deletions build/generateLicenses.js

This file was deleted.

2 changes: 1 addition & 1 deletion electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const sevenZipFile = fs

if (!sevenZipFile) {
throw new Error(
"7z binary file not found. Run `node ./build/download7z.js` first.",
"7z binary file not found. Run `node ./tools/download7z.js` first.",
);
}

Expand Down
60 changes: 59 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"browser:build": "cross-env VITE_TARGET=browser vite build",
"postinstall": "npm run postinstall:packages && npm run postinstall:download-scripts",
"postinstall:packages": "electron-builder install-app-deps && playwright install chromium",
"postinstall:download-scripts": "node build/download7z.js && node build/downloadTypos.js",
"postinstall:download-scripts": "tsx tools/download7z.mts && tsx tools/downloadTypos.mts",
"postuninstall": "electron-builder install-app-deps",
"license:generate": "node build/generateLicenses.js",
"license:merge": "node build/mergeLicenses.js",
"license:generate": "tsx tools/generateLicenses.mts",
"license:merge": "tsx tools/mergeLicenses.mts",
"storybook": "storybook dev --port 6006",
"storybook:build": "storybook build"
},
Expand Down Expand Up @@ -123,11 +123,11 @@
"happy-dom": "15.11.6",
"license-checker-rseidelsohn": "4.3.0",
"markdownlint-cli": "0.37.0",
"node-fetch": "2.7.0",
"playwright": "1.48.0",
"prettier": "3.2.5",
"sass-embedded": "1.81.0",
"storybook": "8.4.4",
"tsx": "4.19.2",
"typescript": "5.5.2",
"vite": "5.4.11",
"vite-plugin-checker": "0.8.0",
Expand Down
File renamed without changes.
File renamed without changes.
Loading
Loading