forked from Plemya-x/ALR
		
	gitverse ссылки
This commit is contained in:
		| @@ -7,7 +7,7 @@ builds: | |||||||
|       - CGO_ENABLED=0 |       - CGO_ENABLED=0 | ||||||
|     binary: alr |     binary: alr | ||||||
|     ldflags: |     ldflags: | ||||||
|       - -X gitflic.ru/project/xpamych/alr/internal/config.Version={{.Version}} |       - -X https://gitverse.ru/Xpamych/ALR/content/master/internal/config.Version={{.Version}} | ||||||
|     goos: |     goos: | ||||||
|       - linux |       - linux | ||||||
|     goarch: |     goarch: | ||||||
| @@ -39,7 +39,7 @@ nfpms: | |||||||
|       {{- else if .Arch | eq "arm64"}}aarch64 |       {{- else if .Arch | eq "arm64"}}aarch64 | ||||||
|       {{- else }}{{ .Arch }}{{ end -}} |       {{- else }}{{ .Arch }}{{ end -}} | ||||||
|     description: "Any Linux Repository" |     description: "Any Linux Repository" | ||||||
|     homepage: 'https://gitflic.ru/project/xpamych/alr' |     homepage: 'https://gitverse.ru/Xpamych/ALR' | ||||||
|     maintainer: 'Евгений Храмов <xpamych@yandex.ru>' |     maintainer: 'Евгений Храмов <xpamych@yandex.ru>' | ||||||
|     license: GPLv3 |     license: GPLv3 | ||||||
|     formats: |     formats: | ||||||
| @@ -60,7 +60,7 @@ nfpms: | |||||||
|         dst: /usr/share/zsh/site-functions/_alr |         dst: /usr/share/zsh/site-functions/_alr | ||||||
| aurs: | aurs: | ||||||
|   - name: linux-user-repository-bin |   - name: linux-user-repository-bin | ||||||
|     homepage: 'https://gitflic.ru/project/xpamych/alr' |     homepage: 'https://gitverse.ru/Xpamych/ALR' | ||||||
|     description: "Any Linux Repository" |     description: "Any Linux Repository" | ||||||
|     maintainers: |     maintainers: | ||||||
|       - 'Евгений Храмов <xpamych@yandex.ru>' |       - 'Евгений Храмов <xpamych@yandex.ru>' | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -2,7 +2,7 @@ PREFIX ?= /usr/local | |||||||
| GIT_VERSION = $(shell git describe --tags ) | GIT_VERSION = $(shell git describe --tags ) | ||||||
|  |  | ||||||
| alr: | alr: | ||||||
| 	CGO_ENABLED=0 go build -ldflags="-X 'gitflic.ru/project/xpamych/alr/internal/config.Version=$(GIT_VERSION)'" | 	CGO_ENABLED=0 go build -ldflags="-X 'gitverse.ru/Xpamych/ALR/internal/config.Version=$(GIT_VERSION)'" | ||||||
|  |  | ||||||
| clean: | clean: | ||||||
| 	rm -f alr | 	rm -f alr | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @@ -18,13 +18,9 @@ ALR написан на чистом Go и после сборки не имее | |||||||
| curl -fsSL plemya-x.ru/alr/install.sh | bash | curl -fsSL plemya-x.ru/alr/install.sh | bash | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| **ВАЖНО**: При этом скрипт будет загружен и запущен с https://gitflic.ru/project/xpamych/alr/install. Пожалуйста, просматривайте любые скрипты, которые вы скачиваете из Интернета (включая этот), прежде чем запускать их. | **ВАЖНО**: При этом скрипт будет загружен и запущен с https://gitverse.ru/Xpamych/ALR/install. Пожалуйста, просматривайте любые скрипты, которые вы скачиваете из Интернета (включая этот), прежде чем запускать их. | ||||||
|  |  | ||||||
| ### Пакеты | ### Сборка из исходного кода | ||||||
|  |  | ||||||
| Пакеты для дистрибутивов и двоичные архивы представлены в последней версии на Gitflic: https://gitflic.ru/project/xpamych/alr/package |  | ||||||
|  |  | ||||||
| ### Сборка из исодного кода |  | ||||||
|  |  | ||||||
| Чтобы собрать ALR из исходного кода, вам понадобится версия Go 1.18 или новее. Как только Go будет установлен, клонируйте это репозиторий и запустите: | Чтобы собрать ALR из исходного кода, вам понадобится версия Go 1.18 или новее. Как только Go будет установлен, клонируйте это репозиторий и запустите: | ||||||
|  |  | ||||||
| @@ -42,7 +38,7 @@ ALR был создан потому, что упаковка программн | |||||||
|  |  | ||||||
| ## Документация | ## Документация | ||||||
|  |  | ||||||
| Документация по всем этим вопросам находится в [Wiki](https://gitflic.ru/project/xpamych/alr/wiki). | Документация по всем этим вопросам находится в [Wiki](https://gitverse.ru/Xpamych/ALR). | ||||||
|  |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ var defaultConfig = &types.Config{ | |||||||
| 	Repos: []types.Repo{ | 	Repos: []types.Repo{ | ||||||
| 		{ | 		{ | ||||||
| 			Name: "default", | 			Name: "default", | ||||||
| 			URL:  "https://gitflic.ru/project/xpamych/xpamych-alr-repo.git", | 			URL:  "https://gitverse.ru/sc/Xpamych/xpamych-alr-repo.git", | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -37,7 +37,7 @@ var testPkg = db.Package{ | |||||||
| 		"ru": "Проверочный пакет", | 		"ru": "Проверочный пакет", | ||||||
| 	}), | 	}), | ||||||
| 	Homepage: db.NewJSON(map[string]string{ | 	Homepage: db.NewJSON(map[string]string{ | ||||||
| 		"en": "https://gitflic.ru/project/xpamych/alr/", | 		"en": "https://gitverse.ru/Xpamych/ALR/", | ||||||
| 	}), | 	}), | ||||||
| 	Maintainer: db.NewJSON(map[string]string{ | 	Maintainer: db.NewJSON(map[string]string{ | ||||||
| 		"en": "Евгений Храмов <xpamych@yandex.ru>", | 		"en": "Евгений Храмов <xpamych@yandex.ru>", | ||||||
|   | |||||||
| @@ -56,7 +56,7 @@ const testScript = ` | |||||||
| 	release=1 | 	release=1 | ||||||
| 	epoch=2 | 	epoch=2 | ||||||
| 	desc="Test package" | 	desc="Test package" | ||||||
| 	homepage='https://gitflic.ru/project/xpamych/alr' | 	homepage='https://gitverse.ru/Xpamych/ALR' | ||||||
| 	maintainer='Евгений Храмов <xpamych@yandex.ru>' | 	maintainer='Евгений Храмов <xpamych@yandex.ru>' | ||||||
| 	architectures=('arm64' 'amd64') | 	architectures=('arm64' 'amd64') | ||||||
| 	license=('GPL-3.0-or-later') | 	license=('GPL-3.0-or-later') | ||||||
| @@ -116,7 +116,7 @@ func TestDecodeVars(t *testing.T) { | |||||||
| 		Release:       1, | 		Release:       1, | ||||||
| 		Epoch:         2, | 		Epoch:         2, | ||||||
| 		Description:   "Test package", | 		Description:   "Test package", | ||||||
| 		Homepage:      "https://gitflic.ru/project/xpamych/alr", | 		Homepage:      "https://gitverse.ru/Xpamych/ALR", | ||||||
| 		Maintainer:    "Arsen Musayelyan <arsen@arsenm.dev>", | 		Maintainer:    "Arsen Musayelyan <arsen@arsenm.dev>", | ||||||
| 		Architectures: []string{"arm64", "amd64"}, | 		Architectures: []string{"arm64", "amd64"}, | ||||||
| 		Licenses:      []string{"GPL-3.0-or-later"}, | 		Licenses:      []string{"GPL-3.0-or-later"}, | ||||||
| @@ -139,7 +139,7 @@ func TestDecodeVarsMissing(t *testing.T) { | |||||||
| 		name='test' | 		name='test' | ||||||
| 		epoch=2 | 		epoch=2 | ||||||
| 		desc="Test package" | 		desc="Test package" | ||||||
| 		homepage='https://gitflic.ru/project/xpamych/alr' | 		homepage='https://gitverse.ru/Xpamych/ALR' | ||||||
| 		maintainer='Arsen Musayelyan <arsen@arsenm.dev>' | 		maintainer='Arsen Musayelyan <arsen@arsenm.dev>' | ||||||
| 		architectures=('arm64' 'amd64') | 		architectures=('arm64' 'amd64') | ||||||
| 		license=('GPL-3.0-or-later') | 		license=('GPL-3.0-or-later') | ||||||
|   | |||||||
| @@ -36,7 +36,7 @@ const testScript = ` | |||||||
| 	release=1 | 	release=1 | ||||||
| 	epoch=2 | 	epoch=2 | ||||||
| 	desc="Test package" | 	desc="Test package" | ||||||
| 	homepage='https://gitflic.ru/project/xpamych/alr' | 	homepage='https://gitverse.ru/Xpamych/ALR' | ||||||
| 	maintainer='Евгений Храмов <xpamych@yandex.ru>' | 	maintainer='Евгений Храмов <xpamych@yandex.ru>' | ||||||
| 	architectures=('arm64' 'amd64') | 	architectures=('arm64' 'amd64') | ||||||
| 	license=('GPL-3.0-or-later') | 	license=('GPL-3.0-or-later') | ||||||
|   | |||||||
| @@ -44,7 +44,7 @@ func TestFindPkgs(t *testing.T) { | |||||||
| 	err = repos.Pull(ctx, []types.Repo{ | 	err = repos.Pull(ctx, []types.Repo{ | ||||||
| 		{ | 		{ | ||||||
| 			Name: "default", | 			Name: "default", | ||||||
| 			URL:  "https://gitflic.ru/project/xpamych/xpamych-alr-repo.git", | 			URL:  "https://gitverse.ru/sc/Xpamych/xpamych-alr-repo.git", | ||||||
| 		}, | 		}, | ||||||
| 	}) | 	}) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
|   | |||||||
| @@ -81,7 +81,7 @@ func TestPull(t *testing.T) { | |||||||
| 	err = repos.Pull(ctx, []types.Repo{ | 	err = repos.Pull(ctx, []types.Repo{ | ||||||
| 		{ | 		{ | ||||||
| 			Name: "default", | 			Name: "default", | ||||||
| 			URL:  "https://gitflic.ru/project/xpamych/xpamych-alr-repo.git", | 			URL:  "https://gitverse.ru/sc/Xpamych/xpamych-alr-repo.git", | ||||||
| 		}, | 		}, | ||||||
| 	}) | 	}) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user