Giter Club home page Giter Club logo

install's Introduction

Shorebird (un)installer

Installation instructions are available at https://docs.shorebird.dev.

Contributing

If you're interested in contributing, please join us on Discord.

License

Shorebird projects are licensed for use under either Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.

See our license philosophy for more information on why we license files this way: https://github.com/shorebirdtech/handbook/blob/main/engineering.md#licensing-philosophy

install's People

Contributors

bryanoltman avatar felangel avatar a14n avatar eseidel avatar

Stargazers

Luke Simmons avatar Shan Shaji avatar Lorito Tiago avatar Celestino Lopes avatar Huy Nguyen avatar  avatar Arshak Aghakaryan avatar Dung Nguyen Minh avatar Elias Reis avatar Moksh Mahajan avatar  avatar Lukas Himsel avatar Robson Silva avatar Erick avatar Yii Chen avatar Leynier Gutiérrez González avatar VuiTv avatar Pierre Guillen avatar brian flagg avatar Ayotomide avatar  avatar

Watchers

 avatar  avatar

install's Issues

feat: error message in not clear when existing shorebird installation is detected

Description
When installing shorebird with
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
if existing shorebird installation is detected it shows the error,
Error: Existing Shorebird installation detected. Use --force to overwrite.
This error message gives only little context, atleast for beginners.
The proper command that works is
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash -s -- --force

Requirements

# Check if install_dir already exists
if [ -d "$(install_dir)" ]; then
  if [ "$FORCE" = true ]; then
    echo "Existing Shorebird installation detected. Overwriting..."
    rm -rf "$(install_dir)"
  else
    echo >&2 "Error: Existing Shorebird installation detected. Use --force to overwrite."
    exit 1
  fi
fi

feat: support WSL

Installer doesn't seem to work in WSL:

eseidel@DESKTOP-9NLT958:~$ curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | sh
Cloning Shorebird into /home/eseidel/.shorebird
Cloning into '/home/eseidel/.shorebird'...
remote: Enumerating objects: 2808, done.
remote: Counting objects: 100% (906/906), done.
remote: Compressing objects: 100% (383/383), done.
remote: Total 2808 (delta 670), reused 618 (delta 509), pack-reused 1902
Receiving objects: 100% (2808/2808), 598.36 KiB | 858.00 KiB/s, done.
Resolving deltas: 100% (1581/1581), done.
Building Shorebird...
/usr/bin/env: ‘bash\r’: No such file or directory
Error: Unable to 'pub upgrade' shorebird. Retrying in five seconds... (9 tries left)
/usr/bin/env: ‘bash\r’: No such file or directory
Error: Unable to 'pub upgrade' shorebird. Retrying in five seconds... (8 tries left)
^C

feat: Support Windows

shorebird itself should now be able to support Windows, but we need to update our installer to do so.

feat: installer could check if enough space before installing

A TT tried to install with not enough space. Got a confusing error message.

Receiving objects: 100% (5492/5492), 10.30 MiB | 894.00 KiB/s, done.
Resolving deltas: 100% (1732/1732), done.
Updating files: 100% (6999/6999), done.
HEAD is now at 58dff390 chore: Update engine version to shorebird-3.7.12
Shorebird Engine • revision d470ae25d21f583abe128f7b838476afd5e45bde
Downloading Darwin arm64 Dart SDK from Flutter engine d470ae25d21f583abe128f7b838476afd5e45bde...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  217M  100  217M    0     0  6542k      0  0:00:34  0:00:34 --:--:-- 9630k
/Users/nils/.shorebird/bin/cache/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot:  write error (disk full?).  Continue? (y/n/^C) 
warning:  /Users/nils/.shorebird/bin/cache/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot is probably truncated

It appears that the downloaded file is corrupt; please try again.
If this problem persists, please report the problem at:
  https://github.com/flutter/flutter/issues/new?template=1_activation.md

Here is a one liner to get the number of free bytes:
df . | tail -1 | awk '{print $4}'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.