Initial packer project
Summary: This is a tool (right now more a script, really) for splitting a Flipper distribution into smaller chunks that can be individually cached, hashed and downloaded. It's incomplete but can already bundle up Mac apps into smaller chunks that can be merged back again into one app. It takes a config file that specifies how to slice the inputs up and comes with a default copy bundled in. That's in line with the general "design" where it tries to make the right assumptions, for instance defaulting to the normal dist output directory. Reviewed By: jknoxville Differential Revision: D21302551 fbshipit-source-id: b22670ff4825ce526dd0f20320f87080c058cd93
This commit is contained in:
committed by
Facebook GitHub Bot
parent
de5147a516
commit
155a8c6952
25
packer/src/types.rs
Normal file
25
packer/src/types.rs
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
use clap::arg_enum;
|
||||
|
||||
arg_enum! {
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, serde::Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum Platform {
|
||||
Mac,
|
||||
Linux,
|
||||
Windows
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, serde::Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum PackType {
|
||||
Frameworks,
|
||||
Core,
|
||||
}
|
||||
Reference in New Issue
Block a user