You've already forked hotpocket
BTHLABS-0000: Add build-opera-source task in _extension_.
This commit is contained in:
@@ -251,3 +251,24 @@ def build_firefox_source(ctx: Context):
|
||||
f'../firefox-source-{current_version}.zip',
|
||||
'.',
|
||||
]))
|
||||
|
||||
|
||||
@task
|
||||
def build_opera_source(ctx: Context):
|
||||
# AMO requires source bundle to be uploaded alongside the built version.
|
||||
ctx.run('rm -rf dist/opera-source')
|
||||
ctx.run('mkdir -p dist/opera-source dist/opera-source/assets dist/opera-source/src')
|
||||
|
||||
ctx.run('rsync -arv assets/ dist/opera-source/assets/')
|
||||
ctx.run('rsync -arv src/ dist/opera-source/src/')
|
||||
ctx.run('rsync -arv eslint.config.js package.json README.md rollup.config.js yarn.lock dist/opera-source/')
|
||||
|
||||
with ctx.cd('dist/opera-source'):
|
||||
current_version = get_version(ctx)
|
||||
|
||||
ctx.run(' '.join([
|
||||
'zip',
|
||||
'-r',
|
||||
f'../opera-source-{current_version}.zip',
|
||||
'.',
|
||||
]))
|
||||
|
||||
Reference in New Issue
Block a user