Skip to content

Commit

Permalink
chore: use --locked to install duckscript
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Dec 17, 2024
1 parent c600f2d commit be2d2da
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_ci.yaml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
rustup target install aarch64-linux-android
rustup target install x86_64-linux-android
rustup target add armv7-linux-androideabi
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
cargo install cargo-ndk
if [ "$RUNNER_OS" == "Linux" ]; then
sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
working-directory: frontend
run: |
rustup target install aarch64-apple-ios-sim
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
cargo install cargo-lipo
cargo make appflowy-flutter-deps-tools
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
run: |
vcpkg integrate install
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
- name: Build Windows app
working-directory: frontend
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
working-directory: frontend
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
- name: Build AppFlowy
working-directory: frontend
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
working-directory: frontend
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
- name: Build AppFlowy
working-directory: frontend
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
sudo apt-get install -y alien libnotify-dev
source $HOME/.cargo/env
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
rustup target add ${{ matrix.job.target }}
- name: Install gcc-aarch64-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
working-directory: frontend
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
- uses: Swatinem/rust-cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tauri_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if: matrix.platform == 'windows-latest'
working-directory: frontend
run: |
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
vcpkg integrate install
- name: install dependencies (ubuntu only)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tauri_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
if: matrix.settings.platform == 'windows-latest'
working-directory: frontend
run: |
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
vcpkg integrate install
- name: install dependencies (ubuntu only)
Expand Down
2 changes: 1 addition & 1 deletion codemagic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ workflows:
rustup target install aarch64-apple-ios-sim
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli
cargo install --force cargo-lipo
cargo make appflowy-flutter-deps-tools
Expand Down
4 changes: 2 additions & 2 deletions frontend/scripts/docker-buildfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ RUN dart pub global activate protoc_plugin 21.1.2
# Install build dependencies for AppFlowy using pacman
RUN sudo pacman -S --needed --noconfirm jemalloc git libkeybinder3 sqlite clang rsync libnotify rocksdb zstd mpv
RUN sudo ln -s /usr/bin/sha1sum /usr/bin/shasum
RUN source ~/.cargo/env && cargo install cargo-make cargo-binstall
RUN source ~/.cargo/env && cargo binstall duckscript_cli -y
RUN source ~/.cargo/env && cargo install cargo-make cargo-binstall --locked
RUN source ~/.cargo/env && cargo binstall duckscript_cli --locked -y

# Build AppFlowy
COPY . /appflowy
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/install_dev_env/install_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ cargo install --force cargo-make

# Install duckscript
printMessage "Installing duckscript."
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli

# Check prerequisites
printMessage "Checking prerequisites."
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/install_dev_env/install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ cargo install --force cargo-make

# Install duckscript
printMessage "Installing duckscript."
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli

# Check prerequisites
printMessage "Checking prerequisites."
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/install_dev_env/install_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ cargo install --force cargo-make

# Install duckscript
printMessage "Installing duckscript."
cargo install --force duckscript_cli
cargo install --force --locked duckscript_cli

# Check prerequisites
printMessage "Checking prerequisites."
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/install_dev_env/install_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $USERPROFILE/.cargo/bin/cargo install --force cargo-make

# Install duckscript
printMessage "Installing duckscript."
$USERPROFILE/.cargo/bin/cargo install --force duckscript_cli
$USERPROFILE/.cargo/bin/cargo install --force --locked duckscript_cli

# Enable vcpkg integration
# Note: Requires admin
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/makefile/env.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ script = """
@echo off
@duck -h > nul
if %errorlevel% GTR 0 (
echo Please install duckscript at first: cargo install --force duckscript_cli
echo Please install duckscript at first: cargo install --force --locked duckscript_cli
exit -1
)
"""
Expand Down

0 comments on commit be2d2da

Please sign in to comment.