doc: update packer README
This commit is contained in:
+12
-2
@@ -27,9 +27,19 @@ assets = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[package.metadata.omrf.cmake]
|
[package.metadata.omrf.cmake]
|
||||||
|
# Configures the namespace part of CMake target.
|
||||||
|
# This property is optional. The default value is extracted from the name of target Rust project.
|
||||||
|
namespace_name = "foobar"
|
||||||
|
# Configures the target part of CMake target.
|
||||||
|
# This property is optional. The default value is extracted from the name of target Rust project.
|
||||||
|
target_name = "foobar"
|
||||||
|
|
||||||
[package.metadata.omrf.pkgconfig]
|
[package.metadata.omrf.pkgconfig]
|
||||||
|
# Configures the human-readable name of this package.
|
||||||
|
# This property is optional. The default value is extracted from the name of target Rust project.
|
||||||
|
name = "Foo Bar"
|
||||||
|
# Configures the brief description of this package.
|
||||||
|
# This property is optional. The default value is extracted from the description of target Rust project.
|
||||||
|
name = "a brown fox jumps over a lazy dog."
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -42,6 +42,14 @@ class Archiver:
|
|||||||
else:
|
else:
|
||||||
self.__dist_zip = None
|
self.__dist_zip = None
|
||||||
|
|
||||||
|
def push_dir(self, arcname: Path) -> None:
|
||||||
|
if self.__dist_dir is not None:
|
||||||
|
target_filepath = self.__dist_dir / arcname
|
||||||
|
target_filepath.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
if self.__dist_zip is not None:
|
||||||
|
self.__dist_zip.mkdir(str(arcname))
|
||||||
|
|
||||||
def push_file(self, filepath: Path, arcname: Path) -> None:
|
def push_file(self, filepath: Path, arcname: Path) -> None:
|
||||||
"""Mirror an existing file into both sinks.
|
"""Mirror an existing file into both sinks.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user