Fixed windows build.

This commit is contained in:
SamTV12345 2024-03-09 22:43:00 +01:00
parent fa5aed489f
commit eefbf4a82c
4 changed files with 12 additions and 8 deletions

View file

@ -164,7 +164,7 @@ export const HomePage = () => {
<tbody style={{overflow: 'auto'}}> <tbody style={{overflow: 'auto'}}>
{plugins.map((plugin) => { {plugins.map((plugin) => {
return <tr key={plugin.name}> return <tr key={plugin.name}>
<td><a href={`https://npmjs.com/${plugin.name}`} target="_blank">{plugin.name}</a></td> <td><a rel="noopener noreferrer" href={`https://npmjs.com/${plugin.name}`} target="_blank">{plugin.name}</a></td>
<td>{plugin.description}</td> <td>{plugin.description}</td>
<td>{plugin.version}</td> <td>{plugin.version}</td>
<td>{plugin.time}</td> <td>{plugin.time}</td>

View file

@ -36,9 +36,9 @@ export const SettingsPage = ()=>{
</div> </div>
<div className="separator"/> <div className="separator"/>
<div className="settings-button-bar"> <div className="settings-button-bar">
<a href="https://github.com/ether/etherpad-lite/wiki/Example-Production-Settings.JSON"><Trans <a rel="noopener noreferrer" target="_blank" href="https://github.com/ether/etherpad-lite/wiki/Example-Production-Settings.JSON"><Trans
i18nKey="admin_settings.current_example-prod"/></a> i18nKey="admin_settings.current_example-prod"/></a>
<a href="https://github.com/ether/etherpad-lite/wiki/Example-Development-Settings.JSON"><Trans <a rel="noopener noreferrer" target="_blank" href="https://github.com/ether/etherpad-lite/wiki/Example-Development-Settings.JSON"><Trans
i18nKey="admin_settings.current_example-devel"/></a> i18nKey="admin_settings.current_example-devel"/></a>
</div> </div>
</div> </div>

View file

@ -41,7 +41,7 @@ try cd "${TMP_FOLDER}"
# setting NODE_ENV=production ensures that dev dependencies are not installed, # setting NODE_ENV=production ensures that dev dependencies are not installed,
# making the windows package smaller # making the windows package smaller
export NODE_ENV=production export NODE_ENV=development
rm -rf node_modules || true rm -rf node_modules || true
rm -rf src/node_modules || true rm -rf src/node_modules || true
@ -55,6 +55,8 @@ try pnpm install
try pnpm run build try pnpm run build
cd .. cd ..
# Nuke the admin folder as it is not needed anymore :D
rm -rf admin
log "copy the windows settings template..." log "copy the windows settings template..."
try cp settings.json.template settings.json try cp settings.json.template settings.json

View file

@ -9,11 +9,13 @@ cmd /C node -e "" || ( echo "Please install node.js ( https://nodejs.org )" && e
echo _ echo _
echo Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient. echo Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
mkdir node_modules
cd /D node_modules
mklink /D "ep_etherpad-lite" "..\src"
cd /D ..\src :: Install admin ui
cd /D ..\admin
cmd /C pnpm i || exit /B 1
cmd /C pnpm run build || exit /B 1
cd /D ..
cmd /C pnpm i || exit /B 1 cmd /C pnpm i || exit /B 1
cd /D "%~dp0\.." cd /D "%~dp0\.."