diff --git a/.github/assets/open-in-gitpod.svg b/.github/assets/open-in-gitpod.svg deleted file mode 100644 index e90547fd..00000000 --- a/.github/assets/open-in-gitpod.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/README.md b/README.md index b8eab209..8e4e5503 100755 --- a/README.md +++ b/README.md @@ -168,12 +168,6 @@ brew install secman curl -sL https://cli.secman.dev | bash ``` -### Using SnapCraft - -```bash -sudo snap install secman -``` - ### Via [Docker](https://docker.com) > `secman cli` image @@ -254,14 +248,19 @@ secman settings ## Some Resources -- [**secman website**](https://secman.dev) -- [**docs**](https://secman.dev/docs) -- [**changelog**](https://secman.dev/changelog) -
+[**secman website**](https://secman.dev) + +[**docs**](https://secman.dev/docs) + +[**changelog**](https://secman.dev/changelog) + +[![open in visual studio code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/scmn-dev/secman) + +## Contributing -- [![open in visual studio code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/scmn-dev/secman) +Thanks for your interest in contributing to the project . You can start a development environment with the gitpod: -- [![open in gitpod](./.github/assets/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/scmn-dev/secman) +[![open in gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/scmn-dev/secman) ## Code Status diff --git a/snapcraft.yaml b/snapcraft.yaml deleted file mode 100755 index b1b4d118..00000000 --- a/snapcraft.yaml +++ /dev/null @@ -1,66 +0,0 @@ -name: secman -version: git -summary: Secman CLI -description: The command-line interface of Secman -grade: stable -confinement: classic - -apps: - secman: - command: bin/run - -architectures: - - build-on: [amd64, armhf] - -parts: - secman: - plugin: nil - override-pull: | - snapcraftctl pull - COMMIT_MSG=$(git log --max-count 1 --pretty="format:%s" | awk '{print $1}') - CLI_VERSION=$(grep \"version\": package.json | head -n 1 | awk '{print $2}' | tr -d \" | tr -d \,) - echo "COMMIT_MSG" - echo $COMMIT_MSG - echo "CLI_VERSION" - echo $CLI_VERSION - if test "$COMMIT_MSG" = "v$CLI_VERSION"; then - echo "Setting snapcraft version to $COMMIT_MSG" - snapcraftctl set-version $COMMIT_MSG - fi - override-build: | - snap refresh snapd - systemctl restart snapd - snap set system proxy.http="" - snap set system proxy.https="" - - set -ex - # install yarn - apt-get update - apt-get install -y curl - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - apt-get update - apt-get install -y nodejs yarn - - yarn - yarn pack --filename secman.tar.gz - export SM_PROVIDER=snap - tar xvzf secman.tar.gz - mkdir ./install - mv package ./install - git clone https://gist.github.com/7eed6656d1ee591206ef0cd8d823d988.git _fetch - chmod 755 _fetch && chmod 755 _fetch/* - OS=linux ./_fetch/fetch ./install/bin - cd ./install && yarn --prod - cd ./install && bin/run -v - sed -i 's/#!\/usr\/bin\/env node/#!\/snap\/secman\/current\/bin\/node/' ./install/bin/run - sed -i "s/^process\.env\.SECMAN_UPDATE_INSTRUCTIONS.*$/process.env.SECMAN_UPDATE_INSTRUCTIONS = 'update with: snap refresh secman'/" ./install/bin/run - mkdir -p snap/hooks - cat << EOF > snap/hooks/configure - #!/bin/sh - set -e - export PATH="$SNAP_DATA/bin:$PATH" - secman update - EOF - chmod +x snap/hooks/configure