1
0
Fork
You've already forked AMO2git.py
0
Converts addons.mozilla.org releases into a git repo
  • Python 100%
Find a file
2023年10月09日 22:55:07 +03:00
.github Initial commit 2023年10月09日 22:55:07 +03:00
AMO2Git Initial commit 2023年10月09日 22:55:07 +03:00
.editorconfig Initial commit 2023年10月09日 22:55:07 +03:00
.gitignore Initial commit 2023年10月09日 22:55:07 +03:00
.gitlab-ci.yml Initial commit 2023年10月09日 22:55:07 +03:00
Code_Of_Conduct.md Initial commit 2023年10月09日 22:55:07 +03:00
MANIFEST.in Initial commit 2023年10月09日 22:55:07 +03:00
pyproject.toml Initial commit 2023年10月09日 22:55:07 +03:00
ReadMe.md Initial commit 2023年10月09日 22:55:07 +03:00
UNLICENSE Initial commit 2023年10月09日 22:55:07 +03:00

AMO2Git.py Unlicensed work

(削除) wheel (GitLab) (削除ここまで) (削除) wheel (GHA via nightly.link) (削除ここまで) (削除) GitLab Build Status (削除ここまで) (削除) GitLab Coverage (削除ここまで) (削除) GitHub Actions (削除ここまで) Libraries.io Status Code style: antiflash

This tool converts a release history on AMO into a git repo history. Useful when the addon developer is uncooperative.

Prerequisites

  1. Install aria2c. Windows version can be downloaded here.
  2. Install git .
  3. Install git-lfs. On Windows git-lfs is shipped with modern versions of Git for Windows.
  4. Install Python 3. For Windows I recommend Anaconda. Python 2 is dead, stop raping its corpse. Use 2to3 with manual postprocessing to migrate incompatible code to 3. It shouldn't take so much time.
  5. Install this tool and its dependencies:

Usage

  1. Obtain an addon id, slug or guid. Or you can just pass an URI, the program will parse the slug from it itself.
  • On Windows:

    1. AMO2git retreive <addon slug or URI> > ./retrieve.bat
    2. type ./retrieve.bat and examine the shell script.
    3. ./retrieve.bat
  • On Linux:

    1. AMO2git retreive <addon slug or URI> > ./retrieve.sh
    2. less ./retrieve.sh and examine the shell script.
    3. chmod +x ./retrieve.sh
    4. ./retrieve.sh
  1. The files will be downloaded to the subdir of the current working directory.
  2. AMO2git convert <addon slug or URI> The tool will create a subdir with the repo. WebExtension, restartless (bootstrap.js) and xul versions of the addon will be in the corresponding branches. Versions will be marked with tags.