Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mini9922g
artex-ko
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
artex-ko
/
start.bat
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
54 lines (47 loc) · 1.98 KB
main
Breadcrumbs
artex-ko
/
start.bat
Copy path
Top
File metadata and controls
Code
Blame
54 lines (47 loc) · 1.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@
echo
off
rem
콘솔을 UTF-8 로 전환합니다. 그러지 않으면 이 파일의 한글이 GBK 터미널에서 깨집니다.
chcp
65001
>
nul
2
>&
1
rem
ARTEX 데몬 시작 스크립트(Windows)
rem
rem
사용법:
rem
start.bat 포그라운드 실행(Ctrl-C 로 중지)
rem
start.bat -addr :9000 추가 인자는 artex 로 그대로 전달
rem
rem
이 스크립트는 한 가지만 합니다. artex.exe 를 실행하고, 프로세스가 종료되면 종료 코드를 보고 다시 띄울지 결정합니다.
rem
rem
0 사용자가 정상 중지 -
>
루프 종료
rem
75 프로그램이 재시작 요청 -
>
즉시 다시 실행(화면에서 "원클릭 업데이트" 또는 "롤백"을 누름)
rem
그 외 비정상 종료 -
>
백오프 후 다시 실행(1-
>
2-
>
4…최대 60초)
rem
rem
다운로드·SHA256 체크섬 검증·버전 교체는 여기서 하지 않고, 전부 artex 가 기동할 때 스스로 처리합니다
rem
(selfupdate 패키지). 스크립트는 단순하게 유지합니다. 자세한 내용은 start.sh 상단 설명을 참고하세요.
setlocal
enabledelayedexpansion
cd
/d
"
%~dp0
"
set
"
BIN
=
artex.exe
"
if
not
exist
"
%BIN%
"
(
echo
[artex] 실행 파일을 찾을 수 없습니다:
%BIN%
1
>&
2
exit
/b
1
)
set
"
RESTART_CODE
=
75
"
set
"
MAX_DELAY
=
60
"
set
/a
delay
=
1
:
loop
"
%BIN%
"
%*
set
"
code
=
!ERRORLEVEL!
"
if
"
!code!
"
==
"
0
"
(
echo
[artex] 정상 종료
exit
/b
0
)
if
"
!code!
"
==
"
%RESTART_CODE%
"
(
rem
업데이트/롤백이 준비되었습니다. 다시 실행하면 artex 가 기동 시 버전 교체를 완료합니다.
echo
[artex] 재시작 요청: 새 버전 적용…
set
/a
delay
=
1
goto
loop
)
echo
[artex] 비정상 종료
^
(code=
!code!
^
),
!delay!
s 후 재시작
1
>&
2
rem
timeout 은 리디렉션된 콘솔에서 실패하므로 ping 으로 대체합니다(N초 지연에는 N+1 번 필요).
set
/a
pings
=
!
delay
!
+
1
ping
-n
!pings!
127.0.0.1
>
nul
2
>&
1
set
/a
delay
=
!
delay
!
*
2
if
!delay!
gtr
%MAX_DELAY%
set
/a
delay
=
%MAX_DELAY%
goto
loop
You can’t perform that action at this time.