-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from YuzukiTsuru/dev
リファインドパーティション出力のサポート
- Loading branch information
Showing
5 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: openixcard | ||
adopt-info: openixcard | ||
summary: Open Source Version of Allwinner PhoenixCard to Dump, Unpack, Flash Allwinner IMG Files on Linux. | ||
description: | | ||
OpenixCard is a Open Source Version of Allwinner PhoenixCard to Dump, Unpack, Flash Allwinner IMG Files on Linux, Support Linux images. | ||
grade: stable | ||
confinement: strict | ||
icon: "./favicon.png" | ||
apps: | ||
openixcard: | ||
command: openixcard | ||
base: core18 | ||
parts: | ||
openixcard: | ||
plugin: cmake | ||
source: https://github.com/YuzukiTsuru/OpenixCard | ||
source-type: git | ||
source-depth: 1 | ||
build-snaps: [cmake/latest/edge] | ||
build-packages: | ||
- pkg-config | ||
- libconfuse-dev | ||
- automake | ||
- autoconf | ||
- aclocal | ||
override-build: | | ||
/snap/bin/cmake \ | ||
-DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_PART_INSTALL/usr/local \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
$SNAPCRAFT_PART_SRC | ||
make -j 4 | ||
make install | ||
snapcraftctl set-version "$(git rev-list --count HEAD)" | ||
passthrough: | ||
title: OpenixCard | ||
license: GPL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,13 +140,13 @@ OpenixCard::OpenixCard(int argc, char **argv) { | |
} | ||
|
||
void OpenixCard::show_logo() { | ||
std::cout << cc::blue << | ||
std::cout << cc::green << | ||
" _____ _ _____ _ \n" | ||
"| |___ ___ ___|_|_ _| |___ ___ _| |\n" | ||
"| | | . | -_| | |_'_| --| .'| _| . |\n" | ||
"|_____| _|___|_|_|_|_,_|_____|__,|_| |___|\n" | ||
" |_| Version: " << PROJECT_GIT_HASH | ||
<< cc::yellow << | ||
<< cc::magenta << | ||
"\nCopyright (c) 2022, YuzukiTsuru <[email protected]>\n" | ||
<< cc::reset << std::endl; | ||
} | ||
|
@@ -227,7 +227,7 @@ void OpenixCard::check_file(const std::string &file_path) { | |
void OpenixCard::get_real_size() { | ||
LOG::INFO("Getting accurate size of Allwinner img..."); | ||
FEX2CFG fex2Cfg(temp_file_path); | ||
auto real_size = fex2Cfg.get_image_real_size(); | ||
auto real_size = fex2Cfg.get_image_real_size(true); | ||
LOG::DATA("The accurate size of image: " + std::to_string(real_size / 1024) + "MB, " + std::to_string(real_size) + "KB"); | ||
} | ||
|