Commit 326178bc authored by Yuanle Song's avatar Yuanle Song
Browse files

update apt publish doc

parent fdd61b0b
...@@ -58,6 +58,31 @@ shared between zero-pinyin and ibus-pinyin. ...@@ -58,6 +58,31 @@ shared between zero-pinyin and ibus-pinyin.
** 2019-08-31 how to format C code? do it before git commit. ** 2019-08-31 how to format C code? do it before git commit.
see ~/c/gtk-im-module/, it uses myastyle-pre-commit-check in git pre-commit see ~/c/gtk-im-module/, it uses myastyle-pre-commit-check in git pre-commit
~/bin/myastyle-pre-commit-check ~/bin/myastyle-pre-commit-check
** 2020-02-16 how to create deb for distribution on apt repo?
- on dev node, test deb, make sure it works.
git push
- on debian 9 x86 and x64 build server,
git pull
./create-deb.sh
- upload deb to aptly node using scp.
- create aptly distribution, snapshot and publish snapshot.
on aptly node,
aptly repo add d [FILE|DIR]...
aptly snapshot list
version=0.1
aptly snapshot create d-$version from repo d
# initial snapshot publish
# aptly publish snapshot \
# -batch -gpg-key=apt@emacsos.com -passphrase-file=/etc/aptly_pass \
# d-$version
# future publishes, switch publish to new snapshot
aptly publish switch \
-batch -gpg-key=apt@emacsos.com -passphrase-file=/etc/aptly_pass \
debian d-$version
* later :entry: * later :entry:
* current :entry: * current :entry:
** **
...@@ -68,6 +93,20 @@ see ~/c/gtk-im-module/, it uses myastyle-pre-commit-check in git pre-commit ...@@ -68,6 +93,20 @@ see ~/c/gtk-im-module/, it uses myastyle-pre-commit-check in git pre-commit
- make the method work. use gobject property maybe. - make the method work. use gobject property maybe.
- set default flags to my flags. reflect this in UI/config file. - set default flags to my flags. reflect this in UI/config file.
* done :entry: * done :entry:
** 2020-02-16 aptly publish fails
- ERROR: prefix/distribution already used by another published repo
#+BEGIN_SRC sh
root@gcpsgp01:~/d# aptly publish snapshot \
> -batch -gpg-key=apt@emacsos.com -passphrase-file=/etc/aptly_pass \
> d-$version
ERROR: prefix/distribution already used by another published repo: ./debian [amd64, i386] publishes {main: [d-0.1]: Snapshot from local repo [d]}
#+END_SRC
try unpublish old snapshot
aptly publish drop debian?
aptly publish switch -batch -gpg-key=apt@emacsos.com -passphrase-file=/etc/aptly_pass debian d-$version
** 2019-10-22 handle a an o en etc differently. only match exactly the character. ** 2019-10-22 handle a an o en etc differently. only match exactly the character.
no fuzzy matching or incomplete pinyin matching. no fuzzy matching or incomplete pinyin matching.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment