# 다운로드한 구성요소는 정상 설치되지만, 변경하거나 다시 압축하면 설치되지 않음

**URL:** https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927
**Category:** Development
**Created:** [12월 28, 2023, 7:31오전 UTC](https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927 "2023-12-28T07:31:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [12월 28, 2023, 7:31오전 UTC](https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927/1 "2023-12-28T07:31:56Z")

</div>

카테고리 배지 컴포넌트를 다운로드한 후 일부 수정을 하고 압축을 풀었다가 다시 압축을 만들었습니다(맥에서는 우클릭 \> 압축). 그런데 `Install > from your device`를 시도하면 다음과 같은 오류 메시지가 표시됩니다: `An error occurred: Import Error: about.json does not exist, or is invalid. Are you sure this is a Discourse Theme?`

아무런 수정 없이 단순히 압축을 풀었다가 다시 압축만 만들어서 설치하려고 해도 동일한 오류가 발생합니다.

하지만 맥에서 원래의 .zip 파일을 업로드하면 정상적으로 작동합니다.

두 파일 사이에서 제가 볼 수 있는 유일한 차이점은 다음과 같습니다:

원본 파일은 69KB이며, `right click > info`를 보면 `Where from` 항목에 `https://github.com/discourse/discourse-category-badge-styles/tree/main https://codeload.github.com/discourse/discourse-category-badge-styles/zip/refs/heads/main`이 표시되어 있습니다.

반면, 수정 없이 압축을 풀었다가 다시 만든 zip 파일은 76KB이며, `Where from` 항목에는 아무것도 표시되지 않습니다.

이것이 정상적으로 작동해야 하는 것인가요?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 28, 2023, 1:25오후 UTC](https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927/2 "2023-12-28T13:25:01Z")

</div>

테마를 만드는 데 도움이 되는 [Discourse 테마 CLI 콘솔 앱을 설치](https://meta.discourse.org/t/install-the-discourse-theme-cli-console-app-to-help-you-build-themes/82950)하는 것을 권장합니다.

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [12월 29, 2023, 6:55오전 UTC](https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927/3 "2023-12-29T06:55:18Z")

</div>

이 방법을 사용하면 스켈레톤은 생성되지만 다른 문제가 있습니다: 압축했을 때 24MB(너무 커서 discourse가 받아들이지 않음 - node\_modules만 119MB)입니다.

저는 [이 테마](https://github.com/discourse/discourse-category-badge-styles.git)에 간단한 수정만 하려는 건데 - 그냥 다운로드해서 변경한 뒤 ‘내 장치에서’ 옵션으로 새 컴포넌트로 업로드하면 안 되나요?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12월 29, 2023, 11:09오전 UTC](https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927/4 "2023-12-29T11:09:41Z")

</div>

zip 파일을 생성하지 마세요.

CLI를 사용하여 편집된 테마를 다시 업로드하세요. 이것이 CLI의 용도이며, 편집이 쉽고 변경 사항의 결과를 바로 확인할 수 있습니다.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [12월 30, 2023, 12:55오전 UTC](https://meta.discourse.org/t/downloaded-component-installs-fine-but-does-not-once-changed-re-zipped/289927/5 "2023-12-30T00:55:42Z")

</div>

탐색해 볼 수 있는 대안 중 하나는 원하는 Overrides를 포함하여 새 컴포넌트를 만드는 것입니다.
