-
Notifications
You must be signed in to change notification settings - Fork 1
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
faba4f3
commit 0143c7b
Showing
9 changed files
with
64 additions
and
21 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,37 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Update packages | ||
run: | | ||
sudo apt-get update | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install golang-1.13 wget fuse libfuse2 kmod | ||
ls -l /lib/modules | ||
/sbin/modprobe fuse | ||
- name: Build AppImage | ||
run: | | ||
export GO111MODULE=on | ||
go mod download | ||
go mod vendor | ||
chmod +x build.sh | ||
bash build.sh | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: rankmirror-ng-x86_64.AppImage | ||
asset_name: rankmirror-ng-v2-$tag.x86_64.AppImage | ||
tag: ${{ github.ref }} | ||
overwrite: true |
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 @@ | ||
vendor |
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,12 +1,13 @@ | ||
#!/bin/bash | ||
|
||
go mod download | ||
go mod vendor | ||
mkdir -p rankmirror-ng.AppDir/usr/bin | ||
go build -o rankmirror-ng.AppDir/usr/bin/rankmirror-ng | ||
cp mirrors.yaml rankmirror-ng.AppDir/usr | ||
wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage | ||
chmod +x appimagetool-x86_64.AppImage | ||
wget https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-x86_64 | ||
mv AppRun-x86_64 rankmirror-ng.AppDir/AppRun | ||
cp -r AppRun-x86_64 rankmirror-ng.AppDir/AppRun | ||
chmod +x rankmirror-ng.AppDir/AppRun | ||
cp -r rankmirror-ng.desktop rankmirror-ng.AppDir | ||
cp -r yast-services-manager.svg rankmirror-ng.AppDir | ||
./appimagetool-x86_64.AppImage rankmirror-ng.AppDir | ||
mv rankmirror-ng-x86_64.AppImage rankmirror-ng-v2-1.0.0.x86_64.AppImage |
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 was deleted.
Oops, something went wrong.
Empty file.
6 changes: 3 additions & 3 deletions
6
rankmirror-ng.AppDir/rankmirror-ng.desktop → rankmirror-ng.desktop
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,6 +1,6 @@ | ||
[Desktop Entry] | ||
Name=rankmirror-ng | ||
Exec=rankmirror-ng | ||
Icon=rankmirror-ng | ||
Icon=yast-services-manager | ||
Type=Application | ||
Categories=System;Utility; | ||
Exec=rankmirror-ng | ||
Categories=System; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.