-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
345e242
commit f17427d
Showing
210 changed files
with
8,903 additions
and
4,987 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish Package to npmjs | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build-for-linux-and-windows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Setup binfmt with QEMU | ||
run: | | ||
sudo apt install qemu binfmt-support qemu-user-static | ||
update-binfmts --display | ||
- name: Setup ldid | ||
run: | | ||
git clone https://github.com/tpoechtrager/ldid | ||
cd ./ldid | ||
sudo make | ||
sudo make install | ||
- name: Install dependenices and build for Linux and Windows | ||
run: | | ||
npm install | ||
npm run linux-x64 | ||
npm run linux-arm64 | ||
npm run windows-x64 | ||
npm run windows-arm64 | ||
npm run mac-x64 | ||
npm run mac-arm64 | ||
- name: Publish NPM library | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- uses: fnkr/github-action-ghr@v1 | ||
env: | ||
GHR_PATH: build/ | ||
GHR_REPLACE: false | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
build/ | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require "language/node" | ||
|
||
class Appwrite < Formula | ||
desc "CLI is a Node based command-line tool for Appwrite API" | ||
homepage "https://appwrite.io" | ||
license "BSD-3-Clause" | ||
head "https://github.com/appwrite/sdk-for-cli.git", branch: "main" | ||
|
||
depends_on "node" | ||
|
||
def install | ||
system "npm", "install", *Language::Node.std_npm_install_args(libexec) | ||
bin.install_symlink Dir["#{libexec}/bin/*"] | ||
end | ||
|
||
test do | ||
system "true" | ||
end | ||
end |
File renamed without changes.
Oops, something went wrong.