Giter Club home page Giter Club logo

install's Introduction

一键安装(忘记要Star了,点了再走哦~)

大家想要的工具可以在心愿清单中提出,说不定会有魔法师满足你的心愿

工具列表

已支持工具列表:

  • 一键安装:ROS(支持ROS和ROS2,树莓派Jetson) 贡献@小鱼
  • 一键安装:VsCode(支持amd64和arm64) 贡献@小鱼
  • 一键安装:github桌面版(小鱼常用的github客户端) 贡献@小鱼
  • 一键安装:nodejs开发环境(通过nodejs可以预览小鱼官网噢 贡献@小鱼
  • 一键配置:rosdep(小鱼的rosdepc,又快又好用) 贡献@小鱼
  • 一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择) 贡献@小鱼
  • 一键配置:系统源(更换系统源,支持全版本Ubuntu系统) 贡献@小鱼
  • 一键安装:Docker(支持amd64和arm64) 贡献@alyssa

可以参考的待添加工具:

  • 一键安装:cartographer

使用方法

wget http://fishros.com/install -O fishros && . fishros

贡献指南

如果想把自己的常用安装程序变成一键安装程序,可以遵循下面的贡献指南。

1.fork工程

fork工程到你的github,然后克隆工程到本地

2.新建文件

在本地的工程的tools目录下新建py文件

  • 若是安装工具命名为:tool_install_xxx.py
  • 若是配置工具为:tool_config_xxx.py

3.编写程序

拷贝模板到你新建的文件:

# -*- coding: utf-8 -*-
from .base import BaseTool
from .base import PrintUtils,CmdTask,FileUtils,AptUtils,ChooseTask
from .base import osversion
from .base import run_tool_file

class Tool(BaseTool):
    def __init__(self):
        self.type = BaseTool.TYPE_INSTALL
        self.name = "模板工程"
        self.autor = '小鱼'

    def run(self):
        #正式的运行
        pass

接着修改type、name、autor

在run函数中编写逻辑,可以提供给你的工具有:

  1. PrintUtils 打印文字
  2. FileUtils 操作文件
  3. AptUtils 操作Apt
  4. ChooseTask 选择选项
  5. CmdTask 运行命令行工具
  6. run_tool_file 运行其他工具(需要在install.py的tools中配置dep)

信息:

  1. osversion 系统相关信息
  2. osarch 架构信息 amd64/i386/arm

4.在install.py中tools中添加一条信息

5.运行测试

贡献名单

install's People

Contributors

alyssa1024 avatar fishros avatar

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.