-
Notifications
You must be signed in to change notification settings - Fork 15
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
e08e766
commit bc8623a
Showing
7 changed files
with
47 additions
and
20 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 |
---|---|---|
|
@@ -8,8 +8,6 @@ jobs: | |
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up 0install | ||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends 0install-core python-gobject rpm2cpio | ||
- name: Clone feeds | ||
uses: actions/checkout@v2 | ||
with: | ||
|
@@ -28,6 +26,6 @@ jobs: | |
git config --global user.email "[email protected]" | ||
echo "${{ secrets.GPG_KEY }}" | gpg --import - | ||
- name: Run 0repo | ||
run: 0install run --not-before 0.10 http://0install.net/tools/0repo.xml | ||
run: ./feeds/0install.sh run --not-before 0.10 http://0install.net/tools/0repo.xml | ||
- name: Push public | ||
run: cd public && git push |
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
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,17 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
function download { | ||
$downloadDir = "$env:LOCALAPPDATA\0install.net\bootstrapper" | ||
if (!(Test-Path "$downloadDir\0install.exe")) { | ||
mkdir -Force $downloadDir | Out-Null | ||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls11,Tls12' | ||
Invoke-WebRequest "https://get.0install.net/0install.exe" -OutFile "$downloadDir\0install.exe" | ||
} | ||
return $downloadDir | ||
} | ||
|
||
if (Get-Command 0install -ErrorAction SilentlyContinue) { | ||
0install @args | ||
} else { | ||
. "$(download)\0install.exe" @args | ||
} |
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,21 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
download() { | ||
zeroinstall_release=0install-$(uname | tr '[:upper:]' '[:lower:]')-$(uname -m)-${ZEROINSTALL_VERSION:-latest} | ||
download_dir=~/.cache/0install.net/$zeroinstall_release | ||
|
||
if [ ! -f $download_dir/files/0install ]; then | ||
echo "Downloading 0install..." >&2 | ||
rm -rf $download_dir | ||
mkdir -p $download_dir | ||
curl -sSL https://get.0install.net/$zeroinstall_release.tar.bz2 | tar xj --strip-components 1 --directory $download_dir | ||
fi | ||
} | ||
|
||
if command -v 0install > /dev/null 2> /dev/null; then | ||
0install "$@" | ||
else | ||
download | ||
$download_dir/files/0install "$@" | ||
fi |
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