GithubHelp home page GithubHelp logo

termux / termux-packaging Goto Github PK

View Code? Open in Web Editor NEW
95.0 13.0 38.0 305 KB

Termux packaging tools.

License: Apache License 2.0

Rust 97.93% Shell 0.58% Dockerfile 0.46% Makefile 1.02%
termux rust packaging deb apt

termux-packaging's Introduction

CI

This repository has been archived since it is not in use by any of Termux's component

Termux packaging tools

This project contains packaging tools for Termux written in Rust.

NOTE: This is my first Rust code, so suggestions for improvements are very welcome!

NOTE: These are newly created tools not yet tested.

Contributing

Run ./check.sh to format code with rustfmt and check it with clippy before submitting a pull request.

termux-packaging's People

Contributors

dependabot[bot] avatar fornwall avatar landfillbaby avatar thunder-coding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

termux-packaging's Issues

lost Cargo.toml

Dear Sir

when i clone this project

and then

run make

or

input { " docker run --rm -it fredrikfornwall/rust-static-builder sh"}

i get

could not find Cargo.toml in /build or any parent directory

THX

Is this normal? (Generating bootstrap zip)

I'm running generate-bootstraps.sh with my parameters: --architectures aarch64 --prefix me.danielrosero.blastergram --repository https://danielroserobintray.bintray.com/blastergram/

Managed to crate an APT repository in bintray, and the script finishes without problem.

But somehow I'm getting a zip without SYMLINKS.txt and only this content inside:

bootstrap-content

Is this normal?

Thanks for replying.

line 295: declare: -A: invalid option

./generate-bootstraps.sh --prefix /data/data/com.my.package/files/usr
this got me run into this error

line 295: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

Plz help me out of this. I'm not too clear

Packaging 'libc++' failed

When creating package 'libc++', I got following error:

AAPT: error: attribute 'package' in <manifest> tag is not a valid Android package name: 'net.termux.libc++'

Seems that '+' is not valid character in an android package name.

Move away from HashMap use

Not the RustPolice but the thing I see is that the apt_repos.rs Package::fields should be statically defined in a struct with some of them being an Option if needed.

This is the most "unrusty" thing about your code. Using a HashMap like this is whats called "stringly typed" code. It's ignoring the power of the type system to clearly define the state of the data expected to keep the error boundary right at ingestion.

Enforce your error boundary as you ingest data from outside and then inside code can rely on clearly Type facts about the data ingested.

I think if you change that idea in apt_repo.rs the rest of your code will clean up from there.

Try using match against values in the struct further into your code for example.

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.