-
Notifications
You must be signed in to change notification settings - Fork 28
记录gb7714-bilingual并整理其它方法 #139
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cda086e
build: move netlify build command into a script
YDX-2147483647 ce83c95
build: install citext as a local package
YDX-2147483647 91d9790
记录gb7714-bilingual并整理其它方法
YDX-2147483647 65015db
记录 pku-typst/gb7714-bilingual#10 新改进
YDX-2147483647 244f700
Merge branch 'master' into bib
YDX-2147483647 326b6ba
chore: update packages (citext 0.4.0 → 0.5.0, modern-nju-thesis 0.4.0…
YDX-2147483647 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,2 @@ | ||
| [build] | ||
| command = """ | ||
| curl -OL https://www.7-zip.org/a/7z2409-linux-x64.tar.xz && \ | ||
| tar -xvf 7z2409-linux-x64.tar.xz 7zz && \ | ||
| mv 7zz 7z && \ | ||
| \ | ||
| curl -OL https://github.com/typst/typst/releases/download/v0.14.1/typst-x86_64-unknown-linux-musl.tar.xz && \ | ||
| tar -xvf typst-x86_64-unknown-linux-musl.tar.xz && \ | ||
| mv typst-x86_64-unknown-linux-musl/typst typst && \ | ||
| rm -r typst-x86_64-unknown-linux-musl && \ | ||
| \ | ||
| curl -OL https://github.com/typst/typst/releases/download/v0.13.1/typst-x86_64-unknown-linux-musl.tar.xz && \ | ||
| tar -xvf typst-x86_64-unknown-linux-musl.tar.xz && \ | ||
| mv typst-x86_64-unknown-linux-musl/typst typst-0.13.1 && \ | ||
| rm -r typst-x86_64-unknown-linux-musl && \ | ||
| \ | ||
| export PATH=$PATH:$(pwd) && \ | ||
| \ | ||
| bash scripts/download-fonts.sh && \ | ||
| \ | ||
| pnpm install && \ | ||
| VP_PROFILE=netlify pnpm build | ||
| """ | ||
| command = "bash scripts/netlify-build.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/usr/bin/env bash | ||
| set -euxo pipefail | ||
|
|
||
| TYPST_LOCAL="$(typst info --format json | jq '.packages["package-path"]' --raw-output)/local" | ||
|
|
||
YDX-2147483647 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| WORKDIR="$(mktemp -d)" | ||
| pushd "$WORKDIR" | ||
|
|
||
| # Install citext | ||
| curl -o citext.zip -L https://github.com/Shuenhoy/citext/archive/refs/tags/v0.5.0.zip | ||
| 7z x citext.zip citext-0.5.0/package | ||
| mkdir -p "$TYPST_LOCAL/citext" | ||
YDX-2147483647 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| mv citext-0.5.0/package "$TYPST_LOCAL/citext/0.5.0" | ||
|
|
||
| # Test citext | ||
| echo '#import "@local/citext:0.5.0"' | typst compile - test-citext.svg | ||
|
|
||
| popd | ||
| rm -rf "$WORKDIR" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #!/usr/bin/env bash | ||
| set -euxo pipefail | ||
|
|
||
| # Install 7z | ||
| curl -OL https://www.7-zip.org/a/7z2409-linux-x64.tar.xz | ||
| tar -xvf 7z2409-linux-x64.tar.xz 7zz | ||
| mv 7zz 7z | ||
|
|
||
| # Install jq | ||
| curl -o jq -L https://github.com/jqlang/jq/releases/download/jq-1.8.1/jq-linux-amd64 | ||
YDX-2147483647 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Install typst v0.14 | ||
| curl -OL https://github.com/typst/typst/releases/download/v0.14.2/typst-x86_64-unknown-linux-musl.tar.xz | ||
| tar -xvf typst-x86_64-unknown-linux-musl.tar.xz | ||
| mv typst-x86_64-unknown-linux-musl/typst typst | ||
| rm -r typst-x86_64-unknown-linux-musl | ||
|
|
||
| # Install typst v0.13 | ||
| curl -OL https://github.com/typst/typst/releases/download/v0.13.1/typst-x86_64-unknown-linux-musl.tar.xz | ||
YDX-2147483647 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| tar -xvf typst-x86_64-unknown-linux-musl.tar.xz | ||
| mv typst-x86_64-unknown-linux-musl/typst typst-0.13.1 | ||
| rm -r typst-x86_64-unknown-linux-musl | ||
YDX-2147483647 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Complete installations | ||
| export PATH=$PATH:$(pwd) | ||
YDX-2147483647 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Prepare | ||
| bash scripts/download-fonts.sh | ||
| bash scripts/install-typst-local-packages.sh | ||
|
|
||
| # Build | ||
| pnpm install | ||
| VP_PROFILE=netlify pnpm build | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.