Skip to content

Commit

Permalink
prepara versió 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Jul 25, 2022
1 parent 14fa6c1 commit 6d61b38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dict/aux.txt
*.dat
*.idx
*.oxt
results/
6 changes: 6 additions & 0 deletions build-oxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def parse_line(line):

def generate_output():

if os.path.exists(OUTPUT):
shutil.rmtree(OUTPUT, ignore_errors=True)
if not os.path.exists(OUTPUT):
os.mkdir(OUTPUT)

oxt_idx = 'UTF-8' + '\n' + str(len(wordlist)) + '\n'
oxt_dat = 'UTF-8' + '\n'

Expand All @@ -104,6 +109,7 @@ def generate_output():

shutil.copyfile(OUTPUT + filename + '.idx', OXT_DIR + OXT_NAME + '/dictionaries/' + filename + '.idx')
shutil.copyfile(OUTPUT + filename + '.dat', OXT_DIR + OXT_NAME + '/dictionaries/' + filename + '.dat')
shutil.copyfile(OXT_DIR + OXT_NAME + '/README.txt', OUTPUT + '/README.txt')

shutil.make_archive(OUTPUT + OXT_NAME, 'zip', OXT_DIR + OXT_NAME + '/')

Expand Down
2 changes: 1 addition & 1 deletion oxt/thesaurus-ca/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _______________________________________________________________________________
Creative Commons CC-BY 4.0 https://creativecommons.org/licenses/by/4.0/


Aquest tesaurus funciona en qualsevol programari que usi el motor mythes,
Aquest diccionari de sinònims funciona en qualsevol programari que usi el motor mythes,
p. ex.: LibreOffice, OpenOffice.org 3.2+

Més informació:
Expand Down

0 comments on commit 6d61b38

Please sign in to comment.