-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from SaahilNotSahil/v0.1.2
V0.1.2
- Loading branch information
Showing
488 changed files
with
3,486 additions
and
17,987 deletions.
There are no files selected for viewing
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,57 @@ | ||
name: packagecloud | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["goreleaser"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
packagecloud: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- run: cat VERSION | ||
- run: echo "TAG=$(cat VERSION)" >> $GITHUB_ENV | ||
- run: wget https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/${{ env.TAG }}/iitj-autoproxy_${{ env.TAG }}_linux_amd64.deb | ||
- name: Upload package PackageCloud.io | ||
uses: danielmundi/upload-packagecloud@v1 | ||
with: | ||
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
packagecloud-username: "SaahilNotSahil" | ||
packagecloud-repo: "iitj-autoproxy" | ||
package-name: iitj-autoproxy_${{ env.TAG }}_linux_amd64.deb | ||
packagecloud-distrib: any/any | ||
|
||
- run: wget https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/${{ env.TAG }}/iitj-autoproxy_${{ env.TAG }}_linux_arm64.deb | ||
- name: Upload package PackageCloud.io | ||
uses: danielmundi/upload-packagecloud@v1 | ||
with: | ||
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
packagecloud-username: "SaahilNotSahil" | ||
packagecloud-repo: "iitj-autoproxy" | ||
package-name: iitj-autoproxy_${{ env.TAG }}_linux_arm64.deb | ||
packagecloud-distrib: any/any | ||
|
||
- run: wget https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/${{ env.TAG }}/iitj-autoproxy_${{ env.TAG }}_linux_amd64.rpm | ||
- name: Upload package PackageCloud.io | ||
uses: danielmundi/upload-packagecloud@v1 | ||
with: | ||
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
packagecloud-username: "SaahilNotSahil" | ||
packagecloud-repo: "iitj-autoproxy" | ||
package-name: iitj-autoproxy_${{ env.TAG }}_linux_amd64.rpm | ||
packagecloud-distrib: rpm_any/rpm_any | ||
|
||
- run: wget https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/${{ env.TAG }}/iitj-autoproxy_${{ env.TAG }}_linux_arm64.rpm | ||
- name: Upload package PackageCloud.io | ||
uses: danielmundi/upload-packagecloud@v1 | ||
with: | ||
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
packagecloud-username: "SaahilNotSahil" | ||
packagecloud-repo: "iitj-autoproxy" | ||
package-name: iitj-autoproxy_${{ env.TAG }}_linux_arm64.rpm | ||
packagecloud-distrib: rpm_any/rpm_any |
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
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 |
---|---|---|
|
@@ -21,6 +21,8 @@ builds: | |
{{- end }} | ||
flags: | ||
- -mod=vendor | ||
ldflags: | ||
- -X github.com/SaahilNotSahil/iitj-autoproxy/pkg.Version={{ .Version }} | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
|
@@ -47,6 +49,8 @@ builds: | |
{{- end }} | ||
flags: | ||
- -mod=vendor | ||
ldflags: | ||
- -X github.com/SaahilNotSahil/iitj-autoproxy/pkg.Version={{ .Version }} | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
|
@@ -56,13 +60,14 @@ checksum: | |
|
||
nfpms: | ||
- package_name: iitj-autoproxy | ||
vendor: XanderWatson | ||
homepage: https://github.com/XanderWatson/iitj-autoproxy | ||
vendor: SaahilNotSahil | ||
homepage: https://github.com/SaahilNotSahil/iitj-autoproxy | ||
maintainer: Saahil Bhavsar <[email protected]> | ||
license: MIT | ||
formats: | ||
- deb | ||
- archlinux | ||
- rpm | ||
release: "1" | ||
bindir: /usr | ||
contents: | ||
|
@@ -78,28 +83,26 @@ nfpms: | |
dst: /usr/bin/autoproxyd-start | ||
- src: ./scripts/linux/daemon-stop.sh | ||
dst: /usr/bin/autoproxyd-stop | ||
scripts: | ||
postinstall: ./scripts/linux/daemon-start.sh | ||
- src: ./service_files/linux/[email protected] | ||
dst: /etc/systemd/system/[email protected] | ||
|
||
release: | ||
prerelease: auto | ||
github: | ||
owner: XanderWatson | ||
owner: SaahilNotSahil | ||
name: iitj-autoproxy | ||
name_template: "{{.ProjectName}}-v{{.Version}}" | ||
extra_files: | ||
- glob: autoproxy.config | ||
|
||
aurs: | ||
- name: iitj-autoproxy-bin | ||
homepage: https://github.com/XanderWatson/iitj-autoproxy | ||
homepage: https://github.com/SaahilNotSahil/iitj-autoproxy | ||
license: MIT | ||
maintainers: | ||
- "Saahil Bhavsar <[email protected]>" | ||
contributors: | ||
- "Saahil Bhavsar <[email protected]>" | ||
commit_author: | ||
name: XanderWatson | ||
name: SaahilNotSahil | ||
email: [email protected] | ||
private_key: "{{ .Env.AUR_KEY }}" | ||
git_url: "ssh://[email protected]/iitj-autoproxy-bin.git" | ||
|
@@ -109,32 +112,11 @@ aurs: | |
install -Dm755 "./scripts/linux/login.sh" "${pkgdir}/usr/bin/autoproxylogin" | ||
install -Dm755 "./scripts/linux/daemon-start.sh" "${pkgdir}/usr/bin/autoproxyd-start" | ||
install -Dm755 "./scripts/linux/daemon-stop.sh" "${pkgdir}/usr/bin/autoproxyd-stop" | ||
install -Dm644 "./service_files/linux/[email protected]" "${pkgdir}/etc/systemd/system/[email protected]" | ||
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/iitj-autoproxy/LICENSE" | ||
install -Dm644 "./autoproxy.config" "${pkgdir}/etc/iitj-autoproxy/autoproxy.config" | ||
install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/iitj-autoproxy/README.md" | ||
# chocolateys: | ||
# - name: iitj-autoproxy | ||
# owners: Saahil Bhavsar | ||
# title: IITJ Autoproxy | ||
# authors: Saahil Bhavsar | ||
# project_url: https://github.com/XanderWatson/iitj-autoproxy | ||
# url_template: "https://github.com/XanderWatson/iitj-autoproxy/releases/download/{{ .Tag }}/{{ .ArtifactName }}" | ||
# copyright: 2023 Saahil Bhavsar | ||
# license_url: https://github.com/XanderWatson/iitj-autoproxy/blob/main/LICENSE | ||
# require_license_acceptance: false | ||
# project_source_url: https://github.com/XanderWatson/iitj-autoproxy | ||
# docs_url: https://github.com/XanderWatson/iitj-autoproxy/blob/main/README.md | ||
# bug_tracker_url: https://github.com/XanderWatson/iitj-autoproxy/issues | ||
# summary: A CLI tool to automatically login to IIT Jodhpur's network firewall. | ||
# description: | | ||
# IITJ Autoproxy installer package. | ||
# A CLI tool to automatically login to IIT Jodhpur's network firewall. | ||
# release_notes: "https://github.com/XanderWatson/iitj-autoproxy/releases/tag/v{{ .Version }}" | ||
# api_key: '{{ .Env.CHOCOLATEY_API_KEY }}' | ||
# source_repo: "https://push.chocolatey.org/" | ||
# skip_publish: false | ||
|
||
archives: | ||
- wrap_in_directory: false | ||
format_overrides: | ||
|
@@ -145,5 +127,55 @@ archives: | |
- README.md | ||
- autoproxy.config | ||
- scripts/* | ||
- install.sh | ||
- install.ps1 | ||
- autoproxy-uninstall.ps1 | ||
|
||
brews: | ||
- name: iitj-autoproxy | ||
url_template: "https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/{{ .Tag }}/{{ .ArtifactName }}" | ||
download_strategy: CurlDownloadStrategy | ||
commit_author: | ||
name: SaahilNotSahil | ||
email: [email protected] | ||
commit_msg_template: "Brew formula update for iitj-autoproxy version {{ .Tag }}" | ||
homepage: "https://github.com/SaahilNotSahil/iitj-autoproxy" | ||
description: "A CLI tool to automatically login to IIT Jodhpur's network firewall." | ||
license: "MIT" | ||
skip_upload: false | ||
service: | | ||
run [opt_bin/"autoproxyd"] | ||
keep_alive true | ||
install: | | ||
bin.install "bin/autoproxyd" | ||
bin.install "bin/autoproxy" | ||
(etc/"iitj-autoproxy").install "autoproxy.config" | ||
bin.install "scripts/darwin/daemon-start.sh" => "autoproxyd-start" | ||
bin.install "scripts/darwin/daemon-stop.sh" => "autoproxyd-stop" | ||
bin.install "scripts/darwin/login.sh" => "autoproxylogin" | ||
repository: | ||
owner: SaahilNotSahil | ||
name: homebrew-iitj-autoproxy | ||
branch: main | ||
pull_request: | ||
enabled: false | ||
|
||
scoops: | ||
- name: iitj-autoproxy | ||
url_template: "https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/{{ .Tag }}/{{ .ArtifactName }}" | ||
commit_author: | ||
name: SaahilNotSahil | ||
email: [email protected] | ||
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" | ||
homepage: "https://github.com/SaahilNotSahil/iitj-autoproxy" | ||
description: "A CLI tool to automatically login to IIT Jodhpur's network firewall." | ||
license: MIT | ||
skip_upload: false | ||
repository: | ||
owner: SaahilNotSahil | ||
name: scoop-iitj-autoproxy | ||
branch: main | ||
pull_request: | ||
enabled: false |
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
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 @@ | ||
0.1.2 |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"base_url": "http://www.gstatic.com/generate_204", | ||
"login_base_url": "https://gateway.iitj.ac.in:1003/" | ||
"username": "", | ||
"password": "", | ||
"token": "", | ||
"scheduler_running_state": false, | ||
"dummy_scheduler_running_state": false | ||
} |
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
Oops, something went wrong.