mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +00:00
Merge pull request #2560 from OSSystems/add-wic-support
Add `.wic` image extension as supported format
This commit is contained in:
commit
beec00dcb3
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -45,5 +45,6 @@ Makefile text
|
|||||||
*.bin binary diff=hex
|
*.bin binary diff=hex
|
||||||
*.dmg binary diff=hex
|
*.dmg binary diff=hex
|
||||||
*.rpi-sdcard binary diff=hex
|
*.rpi-sdcard binary diff=hex
|
||||||
|
*.wic binary diff=hex
|
||||||
*.foo binary diff=hex
|
*.foo binary diff=hex
|
||||||
xz-without-extension binary diff=hex
|
xz-without-extension binary diff=hex
|
||||||
|
2
Makefile
2
Makefile
@ -201,7 +201,7 @@ lint-spell:
|
|||||||
codespell \
|
codespell \
|
||||||
--dictionary - \
|
--dictionary - \
|
||||||
--dictionary dictionary.txt \
|
--dictionary dictionary.txt \
|
||||||
--skip *.svg *.gz,*.bz2,*.xz,*.zip,*.img,*.dmg,*.iso,*.rpi-sdcard,.DS_Store,*.dtb,*.dtbo,*.dat,*.elf,*.bin,*.foo,xz-without-extension \
|
--skip *.svg *.gz,*.bz2,*.xz,*.zip,*.img,*.dmg,*.iso,*.rpi-sdcard,*.wic,.DS_Store,*.dtb,*.dtbo,*.dat,*.elf,*.bin,*.foo,xz-without-extension \
|
||||||
lib tests docs scripts Makefile *.md LICENSE
|
lib tests docs scripts Makefile *.md LICENSE
|
||||||
|
|
||||||
lint: lint-js lint-sass lint-cpp lint-html lint-spell
|
lint: lint-js lint-sass lint-cpp lint-html lint-spell
|
||||||
|
@ -80,5 +80,9 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
extension: 'rpi-sdimg',
|
extension: 'rpi-sdimg',
|
||||||
type: 'image'
|
type: 'image'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
extension: 'wic',
|
||||||
|
type: 'image'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -31,7 +31,9 @@ describe('Shared: SupportedFormats', function () {
|
|||||||
describe('.getNonCompressedExtensions()', function () {
|
describe('.getNonCompressedExtensions()', function () {
|
||||||
it('should return the supported non compressed extensions', function () {
|
it('should return the supported non compressed extensions', function () {
|
||||||
const extensions = supportedFormats.getNonCompressedExtensions()
|
const extensions = supportedFormats.getNonCompressedExtensions()
|
||||||
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'bin', 'dsk', 'hddimg', 'raw', 'dmg', 'sdcard', 'rpi-sdimg' ])
|
m.chai.expect(extensions).to.deep.equal([
|
||||||
|
'img', 'iso', 'bin', 'dsk', 'hddimg', 'raw', 'dmg', 'sdcard', 'rpi-sdimg', 'wic'
|
||||||
|
])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -72,7 +74,8 @@ describe('Shared: SupportedFormats', function () {
|
|||||||
'path/to/filename.hddimg',
|
'path/to/filename.hddimg',
|
||||||
'path/to/filename.raw',
|
'path/to/filename.raw',
|
||||||
'path/to/filename.dmg',
|
'path/to/filename.dmg',
|
||||||
'path/to/filename.sdcard'
|
'path/to/filename.sdcard',
|
||||||
|
'path/to/filename.wic'
|
||||||
|
|
||||||
], (filename) => {
|
], (filename) => {
|
||||||
it(`should return true for ${filename}`, function () {
|
it(`should return true for ${filename}`, function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user