Skip to content

Commit

Permalink
Merge pull request #9 from thulasi-ram/main
Browse files Browse the repository at this point in the history
Release 0.5.0
  • Loading branch information
thulasi-ram authored Sep 1, 2023
2 parents d3a4cf4 + 4edd514 commit db8d793
Show file tree
Hide file tree
Showing 16 changed files with 477 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/discussions_dump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }}
run: |
cd ./scripts
npm ci
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 'Publish Cross Platform Builds'
on:
workflow_dispatch:
push:
branches:
- release
Expand Down Expand Up @@ -32,6 +33,8 @@ jobs:
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'Simple Android Debloater v__VERSION__'
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Update Manifest Workflow

on:
workflow_dispatch:
inputs:
user_input_version:
description: 'Version /tag to target'
release:
types: [created]

jobs:
generate_updater_json:
runs-on: ubuntu-latest
steps:
- run: |
# https://dev.to/mrmike/github-action-handling-input-default-value-5f2g
USER_INPUT_VERSION=${{ github.event.inputs.user_input_version }}
echo "user_input_version=${USER_INPUT_VERSION:-"latest"}" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- env:
GH_TOKEN: ${{ github.token }}
RELEASE_EVENT: ${{github.event.release}}
RELEASE_TAG: ${{github.event.inputs.user_input_version}}
run: |
cd ./scripts
npm ci
ls -lahtr
node ./updater_template.js
- uses: actions/[email protected]
with:
name: sad_updater.json
path: ./scripts/sad_updater.json
if-no-files-found: error

upload_updater_json_to_s3:
runs-on: ubuntu-latest
needs: [generate_updater_json]
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
steps:
- uses: actions/[email protected]
- run: ls -lahtr
- run: pwd
- uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_SAD_UPLOADER_ROLE }}
# use recursive: https://github.com/aws/aws-cli/issues/2929
- run: aws s3 cp sad_updater.json s3://simple-android-debloater --recursive
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ vite.config.ts.timestamp-*
*.db
*.db-shm
*.db-wal
discussions_dump.json
discussions_dump.json
sad_updater.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This software is in beta 🚧

Simpl Android Debloater is a free and open source project to disable unwanted system apps that careers / OEMs force install in our mobile phones.
Simple Android Debloater is a free and open source project to disable unwanted system apps that careers / OEMs force install in our mobile phones.

This is an attempt like [Universal Android Debloater](https://github.com/0x192/universal-android-debloater/) built with [Tauri](https://tauri.app/) and [Sveltekit](https://kit.svelte.dev/).

Expand Down
129 changes: 129 additions & 0 deletions scripts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@octokit/core": "^5.0.0",
"node-fetch": "^3.3.2"
},
"type": "module"
Expand Down
Loading

0 comments on commit db8d793

Please sign in to comment.