Git Product home page Git Product logo

wrapper-rs's Introduction

wrapper-rs

这是一个用 rust 写的, 用于让 Nuitka 打包出来的东西也可以像 pyinstaller 一样能文件夹结构干净一些的小东西 ( 不过经过我的思考, 这玩意也可以作为一个在 Windows 上的硬链接替代品 ( 甚至比硬链接更好, 因为有更多可选项 )) ( 但是现在还不能作为硬链接替代品就是了 )

现在也支持 非 Windows 啦 (虽说没测试过)

使用说明

把你的 Nuitka 打包出来的东西 (xxx.dist) 改个名字, 叫作 lib

把你的主程序改个名字, 叫作 main.exe

整理一下文件夹结构

call.exe
lib/
    main.exe
    你的其他所有东西

让你的用户直接使用 call.exe 即可

详细一些的用法说明

run.conf

# 这是一个范例

# 除了 true 都会被认为是 false
show_console = true

# 就是 chdir (默认 ./lib)
chdir = ../lib

# 运行的可执行文件名称 (默认 ./main)
bin = ./main

# 运行的参数 (默认 "")
arg = aaa
call [选项] [--] [参数]
选项:
    --hide      隐藏控制台窗口 (默认)
    --show      显示控制台窗口
    --chdir=xxx 切换工作目录到 xxx
    --bin=xxx   指定可执行文件
    --config=xxx 指定配置文件
    --help      输出这一堆东西(根据系统语言)
    --help-zh   输出这一堆东西
    --help-en   输出这一堆东西(但是英文)
默认:
    隐藏控制台
    切换工作目录到 ./lib
    运行 ./main
call [options] [--] [arguments]
Options:
    --hide      Hide console window (default)
    --show      Show console window
    --chdir=xxx Change working directory to xxx
    --bin=xxx   Specify executable file
    --config=xxx Specify configuration file
    --help      Print this help message(based on system language)
    --help-zh   Print this help message(but in Chinese)
    --help-en   Print this help message
Defaults:
    hide console
    chdir ./lib
    run ./main

wrapper-rs's People

Contributors

shenjackyuanjie avatar

Stargazers

 avatar LyuYuedong avatar Zeng Lingyu avatar

Watchers

 avatar

Forkers

linecode

wrapper-rs's Issues

call.exe 内置运行配置支持

其实这玩意算“黑科技”?
反正就是读取程序自己的信息然后解析,大概是这样子
神奇的需求,但是确实存在

不得不说,今天看见我那个 path-scripts 才想起来

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.