17 lines
366 B
Python
17 lines
366 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
|
|
from .packer import Packer
|
|
|
|
class App:
|
|
def __init__(self, metafile):
|
|
self.build_dir = os.path.dirname(metafile)
|
|
self.name = os.path.basename(self.build_dir)
|
|
with open(metafile, 'r') as f:
|
|
self.conf = json.load(f)
|
|
|
|
def pack(self):
|
|
packer = Packer()
|
|
packer.pack_app(self)
|