diff --git a/pcm/build.py b/pcm/build.py index a5d3d4a..30e3f41 100644 --- a/pcm/build.py +++ b/pcm/build.py @@ -6,13 +6,13 @@ from os import path import shutil -src_path = path.join(path.dirname(__file__),'..','Stretch') +src_path = path.join(os.path.abspath(path.dirname(__file__)),'..','Stretch') -metadata_template = path.join(path.dirname(__file__),'metadata_template.json') -resources_path = path.join(path.dirname(__file__),'resources') -#print(src_path) +metadata_template = path.join(os.path.abspath(path.dirname(__file__)),'metadata_template.json') +resources_path = path.join(os.path.abspath(path.dirname(__file__)),'resources') +print(src_path) -build_path = path.join('build') +build_path = os.path.abspath(path.join('build')) try: shutil.rmtree(build_path) @@ -22,7 +22,7 @@ os.mkdir(path.join(build_path,'plugin')) os.chdir(build_path) -shutil.copytree(src_path, path.join('plugin','plugins')) +shutil.copytree(src_path, path.join(os.path.abspath('plugin'),'plugins')) # clean out any __pycache__ or .pyc files (https://stackoverflow.com/a/41386937) import pathlib diff --git a/pcm/metadata_template.json b/pcm/metadata_template.json index 8127512..d07a78c 100644 --- a/pcm/metadata_template.json +++ b/pcm/metadata_template.json @@ -25,7 +25,7 @@ }, "versions": [ { - "version": "1.0.0", + "version": "1.2", "status": "stable", "kicad_version": "6.0" } diff --git a/pcm/resources/bitmap.png b/pcm/resources/bitmap.png index 3613d08..782d6a9 100644 Binary files a/pcm/resources/bitmap.png and b/pcm/resources/bitmap.png differ