Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.
/ denoc Public archive

🦕 Compile Deno executables and compress them for all platforms easily

License

Notifications You must be signed in to change notification settings

UltiRequiem/denoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This would make more sense if it was written using Deno, or a compiled language like Go or Rust.

Email me to eliaz.bobadilladev@gmail.com if you create a similar tool, so I will link it here.

If no one does, I will try to do it in my free time later, sponsor me 😩

Denoc

Compile Deno executables and compress them for all platforms easily 🚀

Install

You can install denoc from PyPI like any other package:

pip install denoc

From Github 👇

pip install git+https:/github.com/UltiRequiem/denoc

Usage

Basic usage

denoc compileMe.ts

This will make a directory (deno_builds) with executables for all the supported platforms.

Optional flags:

denoc --outputDir deno_dir_output --compress True file.ts
  • outputDir: The directory where the binaries will be, by default the directory is deno_build

  • compress: Compress the binaries directory

Build and Publish on GitHub Actions

name: Compile

on:
  push:
    tags:
      - "*"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - uses: denoland/setup-deno@v1
        with:
          deno-version: v1.x

      - name: Install denoc
        run: pip install denoc

      - name: Build for all platforms
        run: denoc cli.ts

      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          files: |
            deno_builds/x86_64-unknown-linux-gnu
            deno_builds/aarch64-apple-darwin 
            deno_builds/x86_64-apple-darwin
            deno_builds/x86_64-pc-windows-msvc.exe
          token: ${{ secrets.GITHUB_TOKEN }}

Example Repository 👉 ultirequiem/deno-clear

Authors

Eliaz Bobadilla (a.k.a UltiRequiem) - Creator and Maintainer 💪

See also the full list of contributors who participated in this project.

Versioning

We use SemVer for versioning. For the versions available, see the tags.

Licence

Licensed under the MIT License.